mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-05 02:54:01 +01:00
c7d6bd4b5f
As a consequence also adds coverage for reading 3 and 4 byte lengths (which were not covered before)
93 lines
5.2 KiB
Plaintext
93 lines
5.2 KiB
Plaintext
ASN.1 Write Octet String #0 (Empty string)
|
|
mbedtls_asn1_write_octet_string:"":"0400":2:2
|
|
|
|
ASN.1 Write Octet String #1 (Large buffer)
|
|
mbedtls_asn1_write_octet_string:"AABBCC":"0403AABBCC":10:5
|
|
|
|
ASN.1 Write Octet String #2 (Buffer just fits)
|
|
mbedtls_asn1_write_octet_string:"AABBCC":"0403AABBCC":5:5
|
|
|
|
ASN.1 Write Octet String #3 (Buffer too small for tag)
|
|
mbedtls_asn1_write_octet_string:"AABBCC":"0403AABBCC":4:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write Octet String #4 (Buffer too small for len)
|
|
mbedtls_asn1_write_octet_string:"AABBCC":"0403AABBCC":3:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write Octet String #5 (Buffer too small for string)
|
|
mbedtls_asn1_write_octet_string:"AABBCC":"0403AABBCC":2:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write Octet String #6 (l = 128, large buffer)
|
|
mbedtls_asn1_write_octet_string:"000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F":"048180000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F":140:131
|
|
|
|
ASN.1 Write Octet String #7 (l = 128, buffer just fits)
|
|
mbedtls_asn1_write_octet_string:"000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F":"048180000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F":131:131
|
|
|
|
ASN.1 Write Octet String #8 (l = 128, buffer too small for tag)
|
|
mbedtls_asn1_write_octet_string:"000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F":"":130:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write Octet String #9 (l = 128, buffer too small for len)
|
|
mbedtls_asn1_write_octet_string:"000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F":"":129:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write Octet String #9 (l = 128, buffer too small for string)
|
|
mbedtls_asn1_write_octet_string:"000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F":"":127:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write IA5 String #0 (Empty string)
|
|
mbedtls_asn1_write_ia5_string:"":"1600":2:2
|
|
|
|
ASN.1 Write IA5 String #1 (Large buffer)
|
|
mbedtls_asn1_write_ia5_string:"ABC":"1603414243":10:5
|
|
|
|
ASN.1 Write IA5 String #2 (Buffer just fits)
|
|
mbedtls_asn1_write_ia5_string:"ABC":"1603414243":5:5
|
|
|
|
ASN.1 Write IA5 String #3 (Buffer too small for tag)
|
|
mbedtls_asn1_write_ia5_string:"ABC":"":4:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write IA5 String #4 (Buffer too small for len)
|
|
mbedtls_asn1_write_ia5_string:"ABC":"":3:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write IA5 String #5 (Buffer too small for string)
|
|
mbedtls_asn1_write_ia5_string:"ABC":"":2:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write / Read Length #0 (Len = 0, short form)
|
|
mbedtls_asn1_write_len:0:"00":1:1
|
|
|
|
ASN.1 Write / Read Length #1 (Len = 127, short form)
|
|
mbedtls_asn1_write_len:127:"7F":1:1
|
|
|
|
ASN.1 Write / Read Length #2 (Len = 127, buffer too small)
|
|
mbedtls_asn1_write_len:127:"7F":0:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write / Read Length #3 (Len = 128, long form)
|
|
mbedtls_asn1_write_len:128:"8180":2:2
|
|
|
|
ASN.1 Write / Read Length #4 (Len = 255, long form)
|
|
mbedtls_asn1_write_len:255:"81FF":2:2
|
|
|
|
ASN.1 Write / Read Length #5 (Len = 255, buffer too small)
|
|
mbedtls_asn1_write_len:255:"81FF":1:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write / Read Length #6 (Len = 258, byte order)
|
|
mbedtls_asn1_write_len:258:"820102":3:3
|
|
|
|
ASN.1 Write / Read Length #7 (Len = 65535, long form)
|
|
mbedtls_asn1_write_len:65535:"82FFFF":3:3
|
|
|
|
ASN.1 Write / Read Length #8 (Len = 65535, buffer too small)
|
|
mbedtls_asn1_write_len:65535:"82FFFF":2:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write / Read Length #9 (Len = 66051, byte order)
|
|
mbedtls_asn1_write_len:66051:"83010203":4:4
|
|
|
|
ASN.1 Write / Read Length #10 (Len = 16777215, long form)
|
|
mbedtls_asn1_write_len:16777215:"83FFFFFF":4:4
|
|
|
|
ASN.1 Write / Read Length #11 (Len = 16777215, buffer too small)
|
|
mbedtls_asn1_write_len:16777215:"83FFFFFF":3:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|
|
|
|
ASN.1 Write / Read Length #12 (Len = 16909060, byte order)
|
|
mbedtls_asn1_write_len:16909060:"8401020304":5:5
|
|
|
|
ASN.1 Write / Read Length #12 (Len = 16909060, buffer too small)
|
|
mbedtls_asn1_write_len:16909060:"8401020304":4:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
|