Accelerate legacy WSS elliptic-curve operations and time TLS phases
Enable mbedTLS NIST modular reduction and report per-phase handshake timings. Add handshake-loop regression tests and a certificate verification benchmark, and document the full kernel and APP package requirement.
This commit is contained in:
@@ -51,7 +51,7 @@ for target in ['kernel', 'app']:
|
||||
or line.startswith('#define QUECTEL_MBEDTLS_'))
|
||||
assert layouts['kernel'] == layouts['app'], json.dumps(layouts, indent=2)
|
||||
assert macros['kernel'] == macros['app'], json.dumps({k: sorted(set(macros[k]) - set(macros['app' if k == 'kernel' else 'kernel'])) for k in macros})
|
||||
for feature in ['ECDSA_C', 'KEY_EXCHANGE_ECDHE_ECDSA_ENABLED', 'GCM_C', 'HAVE_TIME_DATE', 'PLATFORM_TIME_ALT']:
|
||||
for feature in ['ECDSA_C', 'ECP_NIST_OPTIM', 'KEY_EXCHANGE_ECDHE_ECDSA_ENABLED', 'GCM_C', 'HAVE_TIME_DATE', 'PLATFORM_TIME_ALT']:
|
||||
assert any(line.startswith('#define MBEDTLS_' + feature + ' ') for line in macros['kernel'])
|
||||
report = {'result': 'PASS', 'layout': layouts['kernel'], 'features': macros['kernel']}
|
||||
(output / 'tls-abi.json').write_text(json.dumps(report, indent=2))
|
||||
|
||||
Reference in New Issue
Block a user