Home
last modified time | relevance | path

Searched refs:blocklen (Results 1 – 7 of 7) sorted by relevance

/openssl/crypto/cms/
H A Dcms_pwri.c204 size_t blocklen = EVP_CIPHER_CTX_get_block_size(ctx); in kek_unwrap_key() local
208 if (blocklen == 0) in kek_unwrap_key()
211 if (inlen < 2 * blocklen) { in kek_unwrap_key()
215 if (inlen % blocklen) { in kek_unwrap_key()
223 in + inlen - 2 * blocklen, blocklen * 2) in kek_unwrap_key()
230 tmp + inlen - blocklen, blocklen) in kek_unwrap_key()
261 size_t blocklen = EVP_CIPHER_CTX_get_block_size(ctx); in kek_wrap_key() local
265 if (blocklen == 0) in kek_wrap_key()
272 olen = (inlen + 4 + blocklen - 1) / blocklen; in kek_wrap_key()
273 olen *= blocklen; in kek_wrap_key()
[all …]
/openssl/test/recipes/30-test_evp_data/
H A Devpmac_common.txt48 Input = "Sample message for keylen=blocklen"
56 Input = "Sample message for keylen<blocklen"
63 Input = "Sample message for keylen=blocklen"
73 Input = "Sample message for keylen=blocklen"
82 Input = "Sample message for keylen<blocklen"
89 Input = "Sample message for keylen=blocklen"
95 Input = "Sample message for keylen=blocklen"
103 Input = "Sample message for keylen<blocklen"
109 Input = "Sample message for keylen=blocklen"
115 Input = "Sample message for keylen=blocklen"
[all …]
H A Devpmac_blake.txt149 Input = "Sample input for keylen<blocklen and custom"
155 Input = "Sample input for keylen<blocklen and custom"
161 Input = "Sample input for keylen<blocklen and salt"
167 Input = "Sample input for keylen<blocklen and salt"
174 Input = "Sample input for keylen<blocklen, salt and custom"
205 Input = "Sample input for keylen<blocklen and custom"
211 Input = "Sample input for keylen<blocklen and custom"
217 Input = "Sample input for keylen<blocklen and salt"
223 Input = "Sample input for keylen<blocklen and salt"
230 Input = "Sample input for keylen<blocklen, salt and custom"
/openssl/providers/implementations/rands/
H A Ddrbg_hmac.c58 if (!EVP_MAC_init(ctx, hmac->K, hmac->blocklen, NULL) in do_hmac()
69 return EVP_MAC_init(ctx, hmac->K, hmac->blocklen, NULL) in do_hmac()
70 && EVP_MAC_update(ctx, hmac->V, hmac->blocklen) in do_hmac()
125 memset(hmac->K, 0x00, hmac->blocklen); in ossl_drbg_hmac_init()
127 memset(hmac->V, 0x01, hmac->blocklen); in ossl_drbg_hmac_init()
229 if (outlen > hmac->blocklen) { in ossl_drbg_hmac_generate()
239 out += hmac->blocklen; in ossl_drbg_hmac_generate()
240 outlen -= hmac->blocklen; in ossl_drbg_hmac_generate()
438 hmac->blocklen = (size_t)md_size; in drbg_hmac_set_ctx_params_locked()
440 ctx->strength = 64 * (int)(hmac->blocklen >> 3); in drbg_hmac_set_ctx_params_locked()
[all …]
H A Ddrbg_hash.c53 size_t blocklen; member
112 if (outlen < hash->blocklen) { in hash_df()
116 OPENSSL_cleanse(vtmp, hash->blocklen); in hash_df()
122 outlen -= hash->blocklen; in hash_df()
127 out += hash->blocklen; in hash_df()
223 if (outlen < hash->blocklen) { in hash_gen()
231 outlen -= hash->blocklen; in hash_gen()
234 out += hash->blocklen; in hash_gen()
531 hash->blocklen = md_size; in drbg_hash_set_ctx_params_locked()
533 ctx->strength = 64 * (hash->blocklen >> 3); in drbg_hash_set_ctx_params_locked()
[all …]
/openssl/providers/implementations/kdfs/
H A Dhmacdrbg_kdf.c90 dst->blocklen = src->blocklen; in ossl_drbg_hmac_dup()
227 drbg->blocklen = (size_t)md_size; in hmac_drbg_kdf_set_ctx_params()
/openssl/providers/implementations/include/prov/
H A Dhmac_drbg.h20 size_t blocklen; member

Completed in 22 milliseconds