/net-tools-3.4.0/mbedtls-2.4.0/library/ |
D | ccm.c | 139 const unsigned char *add, size_t add_len, in ccm_auth_crypt() argument 165 if( add_len > 0xFF00 ) in ccm_auth_crypt() 183 b[0] |= ( add_len > 0 ) << 6; in ccm_auth_crypt() 204 if( add_len > 0 ) in ccm_auth_crypt() 207 len_left = add_len; in ccm_auth_crypt() 211 b[0] = (unsigned char)( ( add_len >> 8 ) & 0xFF ); in ccm_auth_crypt() 212 b[1] = (unsigned char)( ( add_len ) & 0xFF ); in ccm_auth_crypt() 309 const unsigned char *add, size_t add_len, in mbedtls_ccm_encrypt_and_tag() argument 314 add, add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_encrypt_and_tag() 322 const unsigned char *add, size_t add_len, in mbedtls_ccm_auth_decrypt() argument [all …]
|
D | gcm.c | 271 size_t add_len ) in mbedtls_gcm_starts() argument 281 ( (uint64_t) add_len ) >> 61 != 0 ) in mbedtls_gcm_starts() 291 ctx->add_len = 0; in mbedtls_gcm_starts() 329 ctx->add_len = add_len; in mbedtls_gcm_starts() 331 while( add_len > 0 ) in mbedtls_gcm_starts() 333 use_len = ( add_len < 16 ) ? add_len : 16; in mbedtls_gcm_starts() 340 add_len -= use_len; in mbedtls_gcm_starts() 413 uint64_t orig_add_len = ctx->add_len * 8; in mbedtls_gcm_finish() 447 size_t add_len, in mbedtls_gcm_crypt_and_tag() argument 455 if( ( ret = mbedtls_gcm_starts( ctx, mode, iv, iv_len, add, add_len ) ) != 0 ) in mbedtls_gcm_crypt_and_tag() [all …]
|
D | hmac_drbg.c | 74 const unsigned char *additional, size_t add_len ) in mbedtls_hmac_drbg_update() argument 77 unsigned char rounds = ( additional != NULL && add_len != 0 ) ? 2 : 1; in mbedtls_hmac_drbg_update() 88 mbedtls_md_hmac_update( &ctx->md_ctx, additional, add_len ); in mbedtls_hmac_drbg_update() 251 const unsigned char *additional, size_t add_len ) in mbedtls_hmac_drbg_random_with_add() argument 264 if( add_len > MBEDTLS_HMAC_DRBG_MAX_INPUT ) in mbedtls_hmac_drbg_random_with_add() 272 if( ( ret = mbedtls_hmac_drbg_reseed( ctx, additional, add_len ) ) != 0 ) in mbedtls_hmac_drbg_random_with_add() 275 add_len = 0; /* VII.4 */ in mbedtls_hmac_drbg_random_with_add() 279 if( additional != NULL && add_len != 0 ) in mbedtls_hmac_drbg_random_with_add() 280 mbedtls_hmac_drbg_update( ctx, additional, add_len ); in mbedtls_hmac_drbg_random_with_add() 297 mbedtls_hmac_drbg_update( ctx, additional, add_len ); in mbedtls_hmac_drbg_random_with_add()
|
D | ctr_drbg.c | 271 const unsigned char *additional, size_t add_len ) in mbedtls_ctr_drbg_update() argument 275 if( add_len > 0 ) in mbedtls_ctr_drbg_update() 279 if( add_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ) in mbedtls_ctr_drbg_update() 280 add_len = MBEDTLS_CTR_DRBG_MAX_SEED_INPUT; in mbedtls_ctr_drbg_update() 282 block_cipher_df( add_input, additional, add_len ); in mbedtls_ctr_drbg_update() 334 const unsigned char *additional, size_t add_len ) in mbedtls_ctr_drbg_random_with_add() argument 347 if( add_len > MBEDTLS_CTR_DRBG_MAX_INPUT ) in mbedtls_ctr_drbg_random_with_add() 355 if( ( ret = mbedtls_ctr_drbg_reseed( ctx, additional, add_len ) ) != 0 ) in mbedtls_ctr_drbg_random_with_add() 358 add_len = 0; in mbedtls_ctr_drbg_random_with_add() 361 if( add_len > 0 ) in mbedtls_ctr_drbg_random_with_add() [all …]
|
D | pem.c | 402 size_t len = 0, use_len, add_len = 0; in mbedtls_pem_write_buffer() local 405 add_len = strlen( header ) + strlen( footer ) + ( use_len / 64 ) + 1; in mbedtls_pem_write_buffer() 407 if( use_len + add_len > buf_len ) in mbedtls_pem_write_buffer() 409 *olen = use_len + add_len; in mbedtls_pem_write_buffer()
|
/net-tools-3.4.0/mbedtls-2.4.0/include/mbedtls/ |
D | gcm.h | 48 uint64_t add_len; /*!< Total add length */ member 108 size_t add_len, 140 size_t add_len, 163 size_t add_len );
|
D | ccm.h | 101 const unsigned char *add, size_t add_len, 124 const unsigned char *add, size_t add_len,
|
D | hmac_drbg.h | 201 const unsigned char *additional, size_t add_len ); 235 size_t add_len );
|
D | ctr_drbg.h | 209 const unsigned char *additional, size_t add_len ); 228 const unsigned char *additional, size_t add_len );
|
/net-tools-3.4.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_ccm.function | 38 void ccm_lengths( int msg_len, int iv_len, int add_len, int tag_len, int res ) 61 TEST_ASSERT( mbedtls_ccm_encrypt_and_tag( &ctx, msg_len, iv, iv_len, add, add_len, 64 decrypt_ret = mbedtls_ccm_auth_decrypt( &ctx, msg_len, iv, iv_len, add, add_len, 89 size_t key_len, msg_len, iv_len, add_len, tag_len, result_len; 102 add_len = unhexify( add, add_hex ); 109 TEST_ASSERT( mbedtls_ccm_encrypt_and_tag( &ctx, msg_len, iv, iv_len, add, add_len, 135 size_t key_len, msg_len, iv_len, add_len, result_len; 150 add_len = unhexify( add, add_hex ); 168 TEST_ASSERT( mbedtls_ccm_auth_decrypt( &ctx, msg_len, iv, iv_len, add, add_len,
|
D | test_suite_gcm.function | 27 size_t pt_len, iv_len, add_len, tag_len = tag_len_bits / 8; 43 add_len = unhexify( add_str, hex_add_string ); 48 …ypt_and_tag( &ctx, MBEDTLS_GCM_ENCRYPT, pt_len, iv_str, iv_len, add_str, add_len, src_str, output,… 77 size_t pt_len, iv_len, add_len, tag_len = tag_len_bits / 8; 93 add_len = unhexify( add_str, hex_add_string ); 99 …ret = mbedtls_gcm_auth_decrypt( &ctx, pt_len, iv_str, iv_len, add_str, add_len, tag_str, tag_len, …
|
/net-tools-3.4.0/mbedtls-2.4.0/tests/scripts/ |
D | gen_gcm_encrypt.pl | 51 my $add_len = get_suite_val("AADlen"); 64 print("GCM NIST Validation (AES-$key_len,$iv_len,$pt_len,$add_len,$tag_len) #$Count\n");
|
D | gen_gcm_decrypt.pl | 68 my $add_len = get_suite_val("AADlen"); 81 print("GCM NIST Validation (AES-$key_len,$iv_len,$pt_len,$add_len,$tag_len) #$Count\n");
|
/net-tools-3.4.0/mbedtls-2.4.0/ |
D | ChangeLog | 643 add_len (found by Jean-Philippe Aumasson) (not triggerable remotely). 1148 add_len (found by Jean-Philippe Aumasson) (not triggerable remotely).
|