Home
last modified time | relevance | path

Searched refs:seedlen (Results 1 – 5 of 5) sorted by relevance

/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/
A Dhmac_prng.c140 unsigned int seedlen, in tc_hmac_prng_reseed() argument
148 seedlen < MIN_SLEN || in tc_hmac_prng_reseed()
149 seedlen > MAX_SLEN) { in tc_hmac_prng_reseed()
163 update(prng, seed, seedlen); in tc_hmac_prng_reseed()
168 update(prng, seed, seedlen); in tc_hmac_prng_reseed()
A Dctr_prng.c186 unsigned int seedlen = (unsigned int)TC_AES_KEY_SIZE + (unsigned int)TC_AES_BLOCK_SIZE; in tc_ctr_prng_reseed() local
187 if ((0 != ctx) && (entropyLen >= seedlen)) { in tc_ctr_prng_reseed()
/AliOS-Things-master/components/mbedtls/library/
A Dhmac_drbg.c158 size_t seedlen; in mbedtls_hmac_drbg_reseed() local
175 seedlen = ctx->entropy_len; in mbedtls_hmac_drbg_reseed()
180 memcpy( seed + seedlen, additional, len ); in mbedtls_hmac_drbg_reseed()
181 seedlen += len; in mbedtls_hmac_drbg_reseed()
185 if( ( ret = mbedtls_hmac_drbg_update_ret( ctx, seed, seedlen ) ) != 0 ) in mbedtls_hmac_drbg_reseed()
193 mbedtls_platform_zeroize( seed, seedlen ); in mbedtls_hmac_drbg_reseed()
A Dctr_drbg.c383 size_t seedlen = 0; in mbedtls_ctr_drbg_reseed() local
401 seedlen += ctx->entropy_len; in mbedtls_ctr_drbg_reseed()
408 memcpy( seed + seedlen, additional, len ); in mbedtls_ctr_drbg_reseed()
409 seedlen += len; in mbedtls_ctr_drbg_reseed()
415 if( ( ret = block_cipher_df( seed, seed, seedlen ) ) != 0 ) in mbedtls_ctr_drbg_reseed()
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/
A Dhmac_prng.h140 unsigned int seedlen, const uint8_t *additional_input,

Completed in 7 milliseconds