suite_psa_crypto_util: add more test cases for DER->RAW
- r with MSb set - Invalid r (only 1 zero byte) Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
122c94fd26
commit
7a795fd951
1 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,14 @@ ECDSA DER -> Raw, 256bit, Wrong s integer length (too large)
|
|||
depends_on:PSA_WANT_ECC_SECP_K1_256
|
||||
ecdsa_der_to_raw:256:"30440220111111111111111111111111111111111111111111111111111111111111111102212222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_OUT_OF_DATA
|
||||
|
||||
ECDSA DER -> Raw, 256bit, r with MSb set
|
||||
depends_on:PSA_WANT_ECC_SECP_K1_256
|
||||
ecdsa_der_to_raw:256:"3045022100911111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"91111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":0
|
||||
|
||||
ECDSA DER -> Raw, 256bit, Invalid r (only 1 zero byte)
|
||||
depends_on:PSA_WANT_ECC_SECP_K1_256
|
||||
ecdsa_der_to_raw:256:"302502010002202222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
|
||||
|
||||
# 512/521 bit sizes are useful to test sequence's length encoded with 2 bytes.
|
||||
ECDSA Raw -> DER, 512bit, Success
|
||||
depends_on:PSA_WANT_ECC_BRAINPOOL_P_R1_512
|
||||
|
|
Loading…
Reference in a new issue