quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test_suite_psa_crypto_util.data (22699B)


      1 # mbedtls_ecdsa_der_to_raw() doesn't accept a null output buffer,
      2 # even with otherwise invalid paramters,
      3 # so we pass it a (non-null) buffer of length 1.
      4 ECDSA Raw -> DER, 0bit
      5 ecdsa_raw_to_der:0:"":"00":MBEDTLS_ERR_ASN1_INVALID_DATA
      6 
      7 ECDSA DER -> Raw, 0bit
      8 ecdsa_der_to_raw:0:"":"":MBEDTLS_ERR_ASN1_INVALID_DATA
      9 
     10 ECDSA Raw -> DER, 256bit, Success
     11 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     12 ecdsa_raw_to_der:256:"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":"30440220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":0
     13 
     14 ECDSA Raw -> DER, 256bit, DER buffer too small
     15 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     16 ecdsa_raw_to_der:256:"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":"304402201111111111111111111111111111111111111111111111111111111111111111022022222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
     17 
     18 # Check coordinates one byte larger than the largest supported curve.
     19 # If we add an even larger curve, this test case will fail in the full
     20 # configuration because mbedtls_ecdsa_raw_to_der() will return 0, and we'll
     21 # need to use larger data for this test case.
     22 ECDSA Raw -> DER, very large input (536-bit)
     23 ecdsa_raw_to_der:536:"1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":"30818a024311111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111024322222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
     24 
     25 ECDSA Raw -> DER, very large input (1016-bit)
     26 ecdsa_raw_to_der:1016:"1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":"30820102027f11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111027f22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
     27 
     28 ECDSA Raw -> DER, 256bit, Null r
     29 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     30 ecdsa_raw_to_der:256:"00000000000000000000000000000000000000000000000000000000000000002222222222222222222222222222222222222222222222222222222222222222":"30440220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
     31 
     32 ECDSA Raw -> DER, 256bit, Null s
     33 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     34 ecdsa_raw_to_der:256:"11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000":"30440220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
     35 
     36 ECDSA Raw -> DER, 256bit, r with MSb set
     37 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     38 ecdsa_raw_to_der:256:"91111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":"3045022100911111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":0
     39 
     40 ECDSA Raw -> DER, 256bit, s with MSb set
     41 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     42 ecdsa_raw_to_der:256:"1111111111111111111111111111111111111111111111111111111111111111A222222222222222222222222222222222222222222222222222222222222222":"304502201111111111111111111111111111111111111111111111111111111111111111022100A222222222222222222222222222222222222222222222222222222222222222":0
     43 
     44 ECDSA Raw -> DER, 256bit, both r and s with MSb set
     45 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     46 ecdsa_raw_to_der:256:"A111111111111111111111111111111111111111111111111111111111111111A222222222222222222222222222222222222222222222222222222222222222":"3046022100A111111111111111111111111111111111111111111111111111111111111111022100A222222222222222222222222222222222222222222222222222222222222222":0
     47 
     48 ECDSA Raw -> DER, 256bit, r and s only 1 byte of data
     49 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     50 ecdsa_raw_to_der:256:"00000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000022":"3006020111020122":0
     51 
     52 ECDSA Raw -> DER, 256bit, r and s only 1 byte of data with MSb set
     53 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     54 ecdsa_raw_to_der:256:"000000000000000000000000000000000000000000000000000000000000009100000000000000000000000000000000000000000000000000000000000000A2":"300802020091020200A2":0
     55 
     56 ECDSA Raw -> DER, 256bit, Invalid raw signature (r 1 byte shorter)
     57 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     58 ecdsa_raw_to_der:256:"111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":"30440220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
     59 
     60 ECDSA Raw -> DER, 256bit, Invalid raw signature (r and s 1 byte shorter)
     61 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     62 ecdsa_raw_to_der:256:"1111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222":"30440220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
     63 
     64 ECDSA Raw -> DER, 256bit, Invalid raw signature (r 1 byte longer)
     65 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     66 ecdsa_raw_to_der:256:"1111111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":"30440220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
     67 
     68 ECDSA Raw -> DER, 256bit, Invalid raw signature (r and s 1 byte longer)
     69 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     70 ecdsa_raw_to_der:256:"111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222222":"30440220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
     71 
     72 ECDSA DER -> Raw, 256bit, Success
     73 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     74 ecdsa_der_to_raw:256:"30440220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":0
     75 
     76 ECDSA DER -> Raw, 256bit, Raw buffer too small
     77 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     78 ecdsa_der_to_raw:256:"30440220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
     79 
     80 # Check coordinates one byte larger than the largest supported curve.
     81 # If we add an even larger curve, this test case will fail in the full
     82 # configuration because mbedtls_ecdsa_der_to_raw() will return 0, and we'll
     83 # need to use larger data for this test case.
     84 ECDSA DER -> Raw, very large input (536-bit)
     85 ecdsa_der_to_raw:536:"30818a024311111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111024322222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":"1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
     86 
     87 ECDSA DER -> Raw, very large input (1016-bit)
     88 ecdsa_der_to_raw:1016:"30820102027f11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111027f22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":"1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
     89 
     90 ECDSA DER -> Raw, 256bit, Wrong sequence tag
     91 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     92 ecdsa_der_to_raw:256:"40440220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
     93 
     94 ECDSA DER -> Raw, 256bit, Invalid sequence length
     95 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
     96 ecdsa_der_to_raw:256:"30ff0220111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_LENGTH
     97 
     98 ECDSA DER -> Raw, 256bit, Wrong integer tag
     99 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    100 ecdsa_der_to_raw:256:"30440120111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
    101 
    102 ECDSA DER -> Raw, 256bit, Wrong r integer length (1 byte smaller than the actual size)
    103 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    104 ecdsa_der_to_raw:256:"30440219111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
    105 
    106 ECDSA DER -> Raw, 256bit, Wrong r integer length (1 byte larger than the actual size)
    107 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    108 ecdsa_der_to_raw:256:"30440221111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
    109 
    110 ECDSA DER -> Raw, 256bit, Wrong s integer length (1 byte smaller than the actual size)
    111 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    112 ecdsa_der_to_raw:256:"30440220111111111111111111111111111111111111111111111111111111111111111102192222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
    113 
    114 ECDSA DER -> Raw, 256bit, Wrong s integer length (1 byte larger than the actual size)
    115 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    116 ecdsa_der_to_raw:256:"30440220111111111111111111111111111111111111111111111111111111111111111102212222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_OUT_OF_DATA
    117 
    118 ECDSA DER -> Raw, 256bit, r size 1 byte larger than allowed for output raw coordinate
    119 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    120 ecdsa_der_to_raw:256:"3045022111111111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
    121 
    122 ECDSA DER -> Raw, 256bit, r with MSb set
    123 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    124 ecdsa_der_to_raw:256:"3045022100911111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"91111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":0
    125 
    126 ECDSA DER -> Raw, 256bit, Invalid r all zeros
    127 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    128 ecdsa_der_to_raw:256:"30440220000000000000000000000000000000000000000000000000000000000000000002202222222222222222222222222222222222222222222222222222222222222222":"00000000000000000000000000000000000000000000000000000000000000002222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
    129 
    130 ECDSA DER -> Raw, 256bit, Invalid s all zeros
    131 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    132 ecdsa_der_to_raw:256:"30440220111111111111111111111111111111111111111111111111111111111111111102200000000000000000000000000000000000000000000000000000000000000000":"11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000":MBEDTLS_ERR_ASN1_INVALID_DATA
    133 
    134 ECDSA DER -> Raw, 256bit, Valid r only 1 zero byte
    135 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    136 ecdsa_der_to_raw:256:"302502010002202222222222222222222222222222222222222222222222222222222222222222":"00000000000000000000000000000000000000000000000000000000000000002222222222222222222222222222222222222222222222222222222222222222":0
    137 
    138 ECDSA DER -> Raw, 256bit, Valid s only 1 zero byte
    139 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    140 ecdsa_der_to_raw:256:"302502201111111111111111111111111111111111111111111111111111111111111111020100":"11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000":0
    141 
    142 ECDSA DER -> Raw, 256bit, Invalid 0-length r
    143 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    144 ecdsa_der_to_raw:256:"3024020002202222222222222222222222222222222222222222222222222222222222222222":"00000000000000000000000000000000000000000000000000000000000000002222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
    145 
    146 ECDSA DER -> Raw, 256bit, Invalid 0-length s
    147 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    148 ecdsa_der_to_raw:256:"3024022011111111111111111111111111111111111111111111111111111111111111110200":"11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000":MBEDTLS_ERR_ASN1_INVALID_DATA
    149 
    150 ECDSA DER -> Raw, 256bit, Invalid r 2 leading zeros
    151 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    152 ecdsa_der_to_raw:256:"3027020300000102202222222222222222222222222222222222222222222222222222222222222222":"00000000000000000000000000000000000000000000000000000000000000002222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
    153 
    154 ECDSA DER -> Raw, 256bit, Invalid s 2 leading zeros
    155 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    156 ecdsa_der_to_raw:256:"3027022011111111111111111111111111111111111111111111111111111111111111110203000001":"11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000":MBEDTLS_ERR_ASN1_INVALID_DATA
    157 
    158 ECDSA DER -> Raw, 256bit, Invalid r: MSb set without leading zero
    159 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    160 ecdsa_der_to_raw:256:"30440220911111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222":"11111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":MBEDTLS_ERR_ASN1_INVALID_DATA
    161 
    162 # 512/521 bit sizes are useful to test sequence's length encoded with 2 bytes.
    163 ECDSA Raw -> DER, 512bit, Success
    164 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 512
    165 ecdsa_raw_to_der:512:"1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":"308184024011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111024022222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":0
    166 
    167 # 512/521 bit sizes are useful to test sequence's length encoded with 2 bytes.
    168 ECDSA DER -> Raw, 512bit, Success
    169 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 512
    170 ecdsa_der_to_raw:512:"308184024011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111024022222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":"1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":0
    171 
    172 # 512/521 bit sizes are useful to test sequence's length encoded with 2 bytes.
    173 ECDSA Raw -> DER, 521bit, Success
    174 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 521
    175 ecdsa_raw_to_der:521:"011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111012222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":"30818802420111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110242012222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":0
    176 
    177 # 512/521 bit sizes are useful to test sequence's length encoded with 2 bytes.
    178 ECDSA DER -> Raw, 521bit, Success
    179 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 521
    180 ecdsa_der_to_raw:521:"30818802420111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110242012222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":"011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111012222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":0
    181 
    182 ECDSA Raw -> DER, 256bit, Incremental DER buffer sizes
    183 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    184 ecdsa_raw_to_der_incremental:256:"91111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222":"3045022100911111111111111111111111111111111111111111111111111111111111111102202222222222222222222222222222222222222222222222222222222222222222"
    185 
    186 ECDSA Raw -> DER, 512bit, Incremental DER buffer sizes
    187 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 512
    188 ecdsa_raw_to_der_incremental:512:"9111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":"30818502410091111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111024022222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222"
    189 
    190 ECDSA Raw -> DER, 521bit, Incremental DER buffer sizes
    191 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 521
    192 ecdsa_raw_to_der_incremental:521:"011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111012222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222":"30818802420111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110242012222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222"
    193 
    194 ECDSA Raw -> DER, 256bit, DER buffer of minimal length (1 byte per integer)
    195 depends_on:PSA_VENDOR_ECC_MAX_CURVE_BITS >= 256
    196 ecdsa_raw_to_der_incremental:256:"00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002":"3006020101020102"