Home
last modified time | relevance | path

Searched refs:iv_len (Results 1 – 19 of 19) sorted by relevance

/openssl/providers/implementations/kdfs/
H A Dkbkdf.c72 size_t iv_len; member
150 OPENSSL_clear_free(ctx->iv, ctx->iv_len); in kbkdf_reset()
171 || !ossl_prov_memdup(src->iv, src->iv_len, in kbkdf_dup()
172 &dest->iv, &dest->iv_len)) in kbkdf_dup()
208 size_t iv_len, unsigned char *label, size_t label_len, in derive() argument
215 size_t written = 0, to_write, k_i_len = iv_len; in derive()
231 if (iv_len > 0) in derive()
232 memcpy(k_i, iv, iv_len); in derive()
335 if (ctx->iv_len != 0 && ctx->iv_len != h) { in kbkdf_derive()
356 ret = derive(ctx->ctx_init, ctx->mode, ctx->iv, ctx->iv_len, ctx->label, in kbkdf_derive()
[all …]
/openssl/include/crypto/
H A Devp.h305 int iv_len; member
441 key_len, iv_len, flags, init_key, cleanup, \ argument
444 nid##_##nmode, block_size, key_len, iv_len, \
464 iv_len, cbits, flags, init_key, cleanup, \ argument
467 key_len, iv_len, flags, init_key, cleanup, set_asn1, \
471 iv_len, cbits, flags, init_key, cleanup, \ argument
474 key_len, iv_len, flags, init_key, cleanup, set_asn1, \
488 BLOCK_CIPHER_def_cfb(cname, kstruct, nid, key_len, iv_len, cbits, \
490 BLOCK_CIPHER_def_ofb(cname, kstruct, nid, key_len, iv_len, cbits, \
558 block_size, key_len, iv_len, cbits, \ argument
[all …]
/openssl/crypto/evp/
H A Dcmeth_lib.c66 int EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) in EVP_CIPHER_meth_set_iv_length() argument
68 if (cipher->iv_len != 0) in EVP_CIPHER_meth_set_iv_length()
71 cipher->iv_len = iv_len; in EVP_CIPHER_meth_set_iv_length()
H A Devp_lib.c237 asn1_params->iv_len = i; in evp_cipher_get_asn1_aead_params()
250 asn1_params->iv_len); in evp_cipher_set_asn1_aead_params()
345 cipher->iv_len = ivlen; in evp_cipher_cache_constants()
487 return (cipher == NULL) ? 0 : cipher->iv_len; in EVP_CIPHER_get_iv_length()
495 if (ctx->iv_len < 0) { in EVP_CIPHER_CTX_get_iv_length()
524 ((EVP_CIPHER_CTX *)ctx)->iv_len = len; in EVP_CIPHER_CTX_get_iv_length()
526 return ctx->iv_len; in EVP_CIPHER_CTX_get_iv_length()
H A Devp_enc.c49 ctx->iv_len = -1; in OSSL_SAFE_MATH_SIGNED()
68 ctx->iv_len = -1; in OSSL_SAFE_MATH_SIGNED()
80 ctx->iv_len = -1; in EVP_CIPHER_CTX_new()
1155 if (ctx->iv_len == arg) in EVP_CIPHER_CTX_ctrl()
1159 ctx->iv_len = -1; in EVP_CIPHER_CTX_ctrl()
1166 ctx->iv_len = -1; in EVP_CIPHER_CTX_ctrl()
1344 if (p != NULL && !OSSL_PARAM_get_int(p, &ctx->iv_len)) { in EVP_CIPHER_CTX_set_params()
1346 ctx->iv_len = -1; in EVP_CIPHER_CTX_set_params()
H A Devp_local.h49 int iv_len; /* IV length */ member
/openssl/ssl/
H A Ds3_enc.c99 size_t n, iv_len, key_len; in ssl3_change_cipher_state() local
122 iv_len = EVP_CIPHER_get_iv_length(ciph); in ssl3_change_cipher_state()
131 n += iv_len + iv_len; in ssl3_change_cipher_state()
137 n += key_len + iv_len; in ssl3_change_cipher_state()
139 n += iv_len; in ssl3_change_cipher_state()
150 NULL, 0, key, key_len, iv, iv_len, mac_secret, in ssl3_change_cipher_state()
/openssl/ssl/quic/
H A Dquic_record_shared.c110 size_t key_len = 0, iv_len = 0; in el_setup_keyslot() local
123 iv_len = ossl_qrl_get_suite_cipher_iv_len(el->suite_id); in el_setup_keyslot()
145 el->iv[keyslot], iv_len, 1)) in el_setup_keyslot()
169 if (!ossl_assert(iv_len == (size_t)EVP_CIPHER_get_iv_length(cipher)) in el_setup_keyslot()
/openssl/test/
H A Dacvp_test.c872 const unsigned char *iv, size_t iv_len, in cipher_enc() argument
906 tst->iv, tst->iv_len, in cipher_enc_dec_test()
910 tst->iv, tst->iv_len, in cipher_enc_dec_test()
917 const unsigned char *iv, size_t iv_len, in aes_ccm_enc_dec() argument
987 tst->iv, tst->iv_len, tst->aad, tst->aad_len, in aes_ccm_enc_dec_test()
991 tst->iv, tst->iv_len, tst->aad, tst->aad_len, in aes_ccm_enc_dec_test()
1004 const unsigned char *iv, size_t iv_len, in aes_gcm_enc_dec() argument
1074 outiv, iv_len); in aes_gcm_enc_dec()
1100 tst->iv, tst->iv_len, tst->aad, tst->aad_len, in aes_gcm_enc_dec_test()
1127 NULL, tst->iv_len, tst->aad, tst->aad_len, in aes_gcm_gen_iv_internal_test()
[all …]
H A Devp_test.c878 size_t iv_len; member
1006 return parse_bin(value, &cdat->iv, &cdat->iv_len); in cipher_test_parse()
1008 return parse_bin(value, &cdat->next_iv, &cdat->iv_len); in cipher_test_parse()
1209 expected->iv_len))) { in cipher_test_enc()
1411 tmplen -= expected->iv_len; in cipher_test_enc()
1412 expected_out += expected->iv_len; in cipher_test_enc()
1413 out_misalign += expected->iv_len; in cipher_test_enc()
1445 expected->iv_len))) { in cipher_test_enc()
1570 size_t iv_len; member
1675 return parse_bin(value, &mdata->iv, &mdata->iv_len); in mac_test_parse()
[all …]
H A Devp_extra_test.c4572 int iv_len; in test_evp_updated_iv() local
4600 iv_len = EVP_CIPHER_CTX_get_iv_length(ctx); in test_evp_updated_iv()
4601 if (!TEST_int_ge(iv_len,0)) { in test_evp_updated_iv()
4605 if (!TEST_mem_ne(iCFBIV, sizeof(iCFBIV), updated_iv, iv_len)) { in test_evp_updated_iv()
H A Dacvp_test.inc855 size_t iv_len;
867 size_t iv_len;
881 size_t iv_len;
/openssl/ssl/record/methods/
H A Dktls_meth.c85 crypto_info->iv_len = ivlen; in ktls_configure_crypto()
90 crypto_info->iv_len = ivlen; in ktls_configure_crypto()
105 crypto_info->iv_len = ivlen; in ktls_configure_crypto()
/openssl/crypto/cms/
H A Dcms_enc.c174 aparams.iv_len = ivlen; in ossl_cms_EncryptedContent_init_bio()
/openssl/ssl/statem/
H A Dstatem_srvr.c3939 int iv_len; in construct_stateless_ticket() local
4052 iv_len = EVP_CIPHER_CTX_get_iv_length(ctx); in construct_stateless_ticket()
4053 if (iv_len < 0) { in construct_stateless_ticket()
4067 iv_len = EVP_CIPHER_get_iv_length(cipher); in construct_stateless_ticket()
4068 if (iv_len < 0 in construct_stateless_ticket()
4069 || RAND_bytes_ex(sctx->libctx, iv, iv_len, 0) <= 0 in construct_stateless_ticket()
4093 || !WPACKET_memcpy(pkt, iv, iv_len) in construct_stateless_ticket()
/openssl/doc/man3/
H A DEVP_CIPHER_meth_new.pod28 int EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len);
/openssl/providers/fips/
H A Dself_test_kats.c83 && (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, t->iv_len, NULL) > 0) in cipher_init()
H A Dself_test_data.inc68 size_t iv_len;
/openssl/include/openssl/
H A Devp.h243 int EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len);

Completed in 89 milliseconds