mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 06:28:56 +00:00
80 lines
4.8 KiB
Text
80 lines
4.8 KiB
Text
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 = 256, long form)
|
|
mbedtls_asn1_write_len:256:"820100":3:3
|
|
|
|
ASN.1 Write / Read Length #7 (Len = 65535, max supported length)
|
|
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 = 65536, not supported)
|
|
mbedtls_asn1_write_len:65536:"":0:MBEDTLS_ERR_ASN1_INVALID_LENGTH
|