Lines Matching refs:add_len
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()
363 block_cipher_df( add_input, additional, add_len ); in mbedtls_ctr_drbg_random_with_add()