Skip to content

Commit

Permalink
Add test: ASN.1 Write Integer Mbed-TLS#5 (Big positive)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeySeroshtan committed Dec 5, 2016
1 parent ac1b845 commit fd6a69a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/suites/test_suite_asn1write.data
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,14 @@ mbedtls_asn1_write_int:-16:"0201F0":3:3
ASN.1 Write Integer #4 (Big negative)
mbedtls_asn1_write_int:-231451016:"0204F2345678":6:6

ASN.1 Write Integer #5 (Buffer too small for tag)
ASN.1 Write Integer #5 (Big positive)
mbedtls_asn1_write_int:305419896:"020412345678":6:6

ASN.1 Write Integer #6 (Buffer too small for tag)
mbedtls_asn1_write_int:-231451016:"0204F2345678":5:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL

ASN.1 Write Integer #6 (Buffer too small for len)
ASN.1 Write Integer #7 (Buffer too small for len)
mbedtls_asn1_write_int:-231451016:"0204F2345678":4:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL

ASN.1 Write Integer #7 (Buffer too small for integer)
mbedtls_asn1_write_int:-231451016:"0204F2345678":3:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
ASN.1 Write Integer #8 (Buffer too small for integer)
mbedtls_asn1_write_int:-231451016:"0204F2345678":3:MBEDTLS_ERR_ASN1_BUF_TOO_SMALL

0 comments on commit fd6a69a

Please sign in to comment.