/mbedtls-development/tests/suites/ |
A D | test_suite_ccm.data | 29 CCM lengths #4 tag too short 32 CCM lengths #5 tag too long 45 CCM lengths #9 tag length 0 51 CCM* fixed tag lengths #1 all OK 54 CCM* fixed tag lengths #2 all OK - tag length 0 57 CCM* encrypt and tag #1 61 CCM* encrypt and tag #2 65 CCM* encrypt and tag #3 69 CCM* auth decrypt tag #1 73 CCM* auth decrypt tag #2 [all …]
|
A D | test_suite_gcm.function | 13 const data_t *tag, 52 ASSERT_ALLOC( output, tag->len ); 55 ASSERT_COMPARE( output, tag->len, tag->x, tag->len ); 99 ASSERT_ALLOC( output, tag->len ); 102 ASSERT_COMPARE( output, tag->len, tag->x, tag->len ); 129 ASSERT_ALLOC( output_tag, tag->len ); 133 ASSERT_COMPARE( output_tag, tag->len, tag->x, tag->len ); 149 ASSERT_ALLOC( output, tag->len ); 152 ASSERT_COMPARE( output, tag->len, tag->x, tag->len ); 216 ASSERT_COMPARE( tag_output, tag_len, tag->x, tag->len ); [all …]
|
A D | test_suite_ssl.data | 801 Record crypt, AES-128-CBC, 1.2, MD5, short tag 993 Record crypt, AES-192-CBC, 1.2, MD5, short tag 1185 Record crypt, AES-256-CBC, 1.2, MD5, short tag 2377 Record crypt, AES-128-GCM, 1.2, short tag 2405 Record crypt, AES-192-GCM, 1.2, short tag 2433 Record crypt, AES-256-GCM, 1.2, short tag 2457 Record crypt, CAMELLIA-128-GCM, 1.2, short tag 2481 Record crypt, CAMELLIA-192-GCM, 1.2, short tag 2533 Record crypt, AES-128-CCM, 1.2, short tag 2561 Record crypt, AES-192-CCM, 1.2, short tag [all …]
|
A D | test_suite_ccm.function | 53 ASSERT_COMPARE( output, tag->len, tag->x, tag->len ); 105 unsigned char tag[18]; 115 memset( tag, 0, sizeof( tag ) ); 147 unsigned char tag[18]; 157 memset( tag, 0, sizeof( tag ) ); 195 /* Prepare tag buffer */ 338 /* Calculate tag length */ 349 /* Prepare tag buffer */ 418 /* Calculate tag length */ 511 ASSERT_COMPARE( output, tag->len, tag->x, tag->len ); [all …]
|
A D | test_suite_oid.function | 20 asn1_buf.tag = MBEDTLS_ASN1_OID; 44 asn1_buf.tag = MBEDTLS_ASN1_OID; 68 ext_oid.tag = MBEDTLS_ASN1_OID; 92 md_oid.tag = MBEDTLS_ASN1_OID;
|
A D | test_suite_cipher.function | 350 unsigned char tag[16]; 402 memset( tag, 0, sizeof( tag ) ); 437 TEST_ASSERT( 0 == mbedtls_cipher_write_tag( &ctx_enc, tag, sizeof( tag ) ) ); 458 TEST_ASSERT( 0 == mbedtls_cipher_check_tag( &ctx_dec, tag, sizeof( tag ) ) ); 733 ((void) tag); 752 /* decode buffer and check tag->x */ 760 TEST_ASSERT( tag_result == mbedtls_cipher_check_tag( &ctx, tag->x, tag->len ) ); 802 * key, cipher and tag can't be empty. */ 842 cipher_plus_tag_len = cipher->len + tag->len; 845 memcpy( cipher_plus_tag + cipher->len, tag->x, tag->len ); [all …]
|
A D | test_suite_asn1parse.function | 27 unsigned char tag; 29 /* First get the length, skipping over the tag. */ 37 * check the tag. */ 38 tag = start[0]; 47 switch( tag & 0x1f ) 210 TEST_EQUAL( n, (unsigned) tag ); 249 * The first byte of the string is the tag. Without a tag byte, 530 buf[0] = 0x02; /* tag: INTEGER */ 608 TEST_EQUAL( head.buf.tag, 0 ); 620 TEST_EQUAL( cur->buf.tag, tag ); [all …]
|
/mbedtls-development/library/ |
A D | asn1parse.c | 105 size_t *len, int tag ) in mbedtls_asn1_get_tag() argument 110 if( **p != tag ) in mbedtls_asn1_get_tag() 253 int (*cb)( void *ctx, int tag, in mbedtls_asn1_traverse_sequence_of() argument 272 unsigned char const tag = *(*p)++; in mbedtls_asn1_traverse_sequence_of() local 331 int tag; member 358 cur->buf.tag = tag; in asn1_get_sequence_of_cb() 370 int tag) in mbedtls_asn1_get_sequence_of() argument 375 p, end, 0xFF, tag, 0, 0, in mbedtls_asn1_get_sequence_of() 393 alg->tag = **p; in mbedtls_asn1_get_alg() 408 params->tag = **p; in mbedtls_asn1_get_alg() [all …]
|
A D | psa_crypto_aead.c | 150 uint8_t *tag; in mbedtls_psa_aead_encrypt() local 165 tag = ciphertext + plaintext_length; in mbedtls_psa_aead_encrypt() 211 tag ) ); in mbedtls_psa_aead_encrypt() 216 (void) tag; in mbedtls_psa_aead_encrypt() 261 const uint8_t *tag = NULL; in mbedtls_psa_aead_decrypt() local 298 tag, operation.tag_length, in mbedtls_psa_aead_decrypt() 317 tag, in mbedtls_psa_aead_decrypt() 554 uint8_t *tag, in mbedtls_psa_aead_finish() argument 570 tag, operation->tag_length ) ); in mbedtls_psa_aead_finish() 586 tag ) ); in mbedtls_psa_aead_finish() [all …]
|
A D | ccm.c | 449 unsigned char *tag, size_t tag_len ) in mbedtls_ccm_finish() argument 478 if( tag != NULL ) in mbedtls_ccm_finish() 479 memcpy( tag, ctx->y, tag_len ); in mbedtls_ccm_finish() 492 unsigned char *tag, size_t tag_len ) in ccm_auth_crypt() argument 510 if( ( ret = mbedtls_ccm_finish( ctx, tag, tag_len ) ) != 0 ) in ccm_auth_crypt() 523 unsigned char *tag, size_t tag_len ) in mbedtls_ccm_star_encrypt_and_tag() argument 533 unsigned char *tag, size_t tag_len ) in mbedtls_ccm_encrypt_and_tag() argument 588 const unsigned char *tag, size_t tag_len ) in mbedtls_ccm_star_auth_decrypt() argument 592 input, output, tag, tag_len ); in mbedtls_ccm_star_auth_decrypt() 599 const unsigned char *tag, size_t tag_len ) in mbedtls_ccm_auth_decrypt() argument [all …]
|
A D | x509.c | 92 serial->tag = *(*p)++; in mbedtls_x509_get_serial() 165 md_oid.tag = *p; in x509_get_hash_alg() 366 oid->tag = **p; in x509_get_attr_type_value() 386 val->tag = *(*p)++; in x509_get_attr_type_value() 604 unsigned char tag; in mbedtls_x509_get_time() local 610 tag = **p; in mbedtls_x509_get_time() 612 if( tag == MBEDTLS_ASN1_UTC_TIME ) in mbedtls_x509_get_time() 614 else if( tag == MBEDTLS_ASN1_GENERALIZED_TIME ) in mbedtls_x509_get_time() 644 sig->tag = tag_type; in mbedtls_x509_get_sig() 693 if( ( sig_params->tag != MBEDTLS_ASN1_NULL && sig_params->tag != 0 ) || in mbedtls_x509_get_sig_alg() [all …]
|
A D | chachapoly.c | 286 unsigned char tag[16] ) in chachapoly_crypt_and_tag() 302 ret = mbedtls_chachapoly_finish( ctx, tag ); in chachapoly_crypt_and_tag() 315 unsigned char tag[16] ) in mbedtls_chachapoly_encrypt_and_tag() 319 CHACHAPOLY_VALIDATE_RET( tag != NULL ); in mbedtls_chachapoly_encrypt_and_tag() 326 input, output, tag ) ); in mbedtls_chachapoly_encrypt_and_tag() 334 const unsigned char tag[16], in mbedtls_chachapoly_auth_decrypt() 344 CHACHAPOLY_VALIDATE_RET( tag != NULL ); in mbedtls_chachapoly_auth_decrypt() 358 diff |= tag[i] ^ check_tag[i]; in mbedtls_chachapoly_auth_decrypt()
|
A D | cipher.c | 1125 unsigned char *tag, size_t tag_len ) in mbedtls_cipher_write_tag() argument 1128 CIPHER_VALIDATE_RET( tag_len == 0 || tag != NULL ); in mbedtls_cipher_write_tag() 1153 tag, tag_len ) ); in mbedtls_cipher_write_tag() 1173 const unsigned char *tag, size_t tag_len ) in mbedtls_cipher_check_tag() argument 1179 CIPHER_VALIDATE_RET( tag_len == 0 || tag != NULL ); in mbedtls_cipher_check_tag() 1357 unsigned char *tag, size_t tag_len ) in mbedtls_cipher_aead_encrypt() argument 1374 if( output == NULL || tag != output + ilen ) in mbedtls_cipher_aead_encrypt() 1406 tag, tag_len ) ); in mbedtls_cipher_aead_encrypt() 1454 if( input == NULL || tag != input + ilen ) in mbedtls_cipher_aead_decrypt() 1480 tag, tag_len, input, output ); in mbedtls_cipher_aead_decrypt() [all …]
|
A D | asn1write.c | 101 int mbedtls_asn1_write_tag( unsigned char **p, const unsigned char *start, unsigned char tag ) in mbedtls_asn1_write_tag() argument 106 *--(*p) = tag; in mbedtls_asn1_write_tag() 229 static int asn1_write_tagged_int( unsigned char **p, const unsigned char *start, int val, int tag ) in asn1_write_tagged_int() argument 253 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start, tag ) ); in asn1_write_tagged_int() 268 int mbedtls_asn1_write_tagged_string( unsigned char **p, const unsigned char *start, int tag, in mbedtls_asn1_write_tagged_string() argument 278 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start, tag ) ); in mbedtls_asn1_write_tagged_string()
|
A D | gcm.c | 513 unsigned char *tag, size_t tag_len ) in mbedtls_gcm_finish() argument 521 GCM_VALIDATE_RET( tag != NULL ); in mbedtls_gcm_finish() 543 memcpy( tag, ctx->base_ectr, tag_len ); in mbedtls_gcm_finish() 560 tag[i] ^= ctx->buf[i]; in mbedtls_gcm_finish() 576 unsigned char *tag ) in mbedtls_gcm_crypt_and_tag() argument 586 GCM_VALIDATE_RET( tag != NULL ); in mbedtls_gcm_crypt_and_tag() 598 if( ( ret = mbedtls_gcm_finish( ctx, NULL, 0, &olen, tag, tag_len ) ) != 0 ) in mbedtls_gcm_crypt_and_tag() 610 const unsigned char *tag, in mbedtls_gcm_auth_decrypt() argument 623 GCM_VALIDATE_RET( tag != NULL ); in mbedtls_gcm_auth_decrypt() 636 diff |= tag[i] ^ check_tag[i]; in mbedtls_gcm_auth_decrypt()
|
/mbedtls-development/doxygen/ |
A D | mbedtls.doxyfile | 136 # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag 464 # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] 822 # If the REFERENCES_RELATION tag is set to YES 918 # tag will in the future become obsolete. 1002 # When GENERATE_DOCSET tag is set to YES, this tag determines the name of the 1009 # When GENERATE_DOCSET tag is set to YES, this tag specifies a string that 1033 # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can 1040 # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can 1077 # If the QHG_LOCATION tag is specified, the QCH_FILE tag can 1116 # If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can [all …]
|
/mbedtls-development/include/mbedtls/ |
A D | asn1.h | 97 #define MBEDTLS_ASN1_IS_STRING_TAG( tag ) \ argument 98 ( ( tag ) < 32u && ( \ 99 ( ( 1u << ( tag ) ) & ( ( 1u << MBEDTLS_ASN1_BMP_STRING ) | \ 155 int tag; /**< ASN1 type, e.g. MBEDTLS_ASN1_UTF8_STRING. */ member 261 size_t *len, int tag ); 416 int tag ); 530 int (*cb)( void *ctx, int tag,
|
A D | ccm.h | 183 unsigned char *tag, size_t tag_len ); 232 unsigned char *tag, size_t tag_len ); 269 const unsigned char *tag, size_t tag_len ); 315 const unsigned char *tag, size_t tag_len ); 516 unsigned char *tag, size_t tag_len );
|
A D | gcm.h | 175 unsigned char *tag ); 216 const unsigned char *tag, 355 unsigned char *tag, size_t tag_len );
|
A D | chachapoly.h | 306 unsigned char tag[16] ); 338 const unsigned char tag[16],
|
A D | asn1write.h | 69 unsigned char tag ); 222 int tag, const char *text,
|
/mbedtls-development/ChangeLog.d/ |
A D | ccm_star_no_tag.txt | 2 * Ignore plaintext/ciphertext lengths for CCM*-no-tag operations. 7 * Add support for CCM*-no-tag cipher to the PSA.
|
/mbedtls-development/tests/scripts/ |
A D | gen_gcm_encrypt.pl | 77 my $tag = get_val("Tag"); 87 print(":\"$tag\"");
|
A D | gen_gcm_decrypt.pl | 93 my $tag = get_val("Tag"); 103 print(":\"$tag\"");
|
/mbedtls-development/tests/src/drivers/ |
A D | test_driver_aead.c | 233 uint8_t *tag, in mbedtls_test_transparent_aead_finish() argument 248 ciphertext_length, tag, tag_size, in mbedtls_test_transparent_aead_finish() 260 const uint8_t *tag, in mbedtls_test_transparent_aead_verify() argument 287 mbedtls_psa_safer_memcmp( tag, check_tag, tag_length ) in mbedtls_test_transparent_aead_verify()
|