/netbsd/crypto/external/cpl/trousers/dist/src/trspi/crypto/openssl/ |
H A D | symmetric.c | 261 int iv_len, outiv_len; in Trspi_SymEncrypt() local 276 def_iv = malloc(iv_len); in Trspi_SymEncrypt() 281 RAND_bytes(def_iv, iv_len); in Trspi_SymEncrypt() 284 outiv_ptr = &out[iv_len]; in Trspi_SymEncrypt() 285 outiv_len -= iv_len; in Trspi_SymEncrypt() 319 *out_len += iv_len; in Trspi_SymEncrypt() 335 int iv_len, iniv_len; in Trspi_SymDecrypt() local 348 def_iv = malloc(iv_len); in Trspi_SymDecrypt() 354 memcpy(def_iv, in, iv_len); in Trspi_SymDecrypt() 355 iniv_ptr = &in[iv_len]; in Trspi_SymDecrypt() [all …]
|
/netbsd/external/bsd/wpa/dist/src/crypto/ |
H A D | aes-gcm.c | 196 if (iv_len == 12) { in aes_gcm_prepare_j0() 198 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 199 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 207 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 209 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 254 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 267 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 288 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 301 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() 322 int aes_gmac(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gmac() argument [all …]
|
H A D | crypto_linux.c | 686 size_t iv_len = AES_BLOCK_SIZE; in aes_128_cbc_oper() local 714 alg_iv->ivlen = iv_len; in aes_128_cbc_oper() 715 os_memcpy(alg_iv->iv, iv, iv_len); in aes_128_cbc_oper() 795 size_t iv_len = 8; in aes_unwrap() local 823 alg_iv->ivlen = iv_len; in aes_unwrap() 865 size_t iv_len = 0; in crypto_cipher_init() local 881 iv_len = AES_BLOCK_SIZE; in crypto_cipher_init() 885 iv_len = 8; in crypto_cipher_init() 889 iv_len = 8; in crypto_cipher_init() 902 if (iv && iv_len) { in crypto_cipher_init() [all …]
|
H A D | aes_wrap.h | 53 const u8 *iv, size_t iv_len, 58 const u8 *iv, size_t iv_len, 63 const u8 *iv, size_t iv_len,
|
/netbsd/crypto/external/bsd/openssl.old/dist/include/crypto/ |
H A D | evp.h | 136 int iv_len; member 248 key_len, iv_len, flags, init_key, cleanup, \ argument 251 nid##_##nmode, block_size, key_len, iv_len, \ 264 iv_len, flags, init_key, cleanup, set_asn1, \ argument 270 iv_len, cbits, flags, init_key, cleanup, \ argument 273 key_len, iv_len, flags, init_key, cleanup, set_asn1, \ 277 iv_len, cbits, flags, init_key, cleanup, \ argument 280 key_len, iv_len, flags, init_key, cleanup, set_asn1, \ 294 BLOCK_CIPHER_def_cfb(cname, kstruct, nid, key_len, iv_len, cbits, \ 296 BLOCK_CIPHER_def_ofb(cname, kstruct, nid, key_len, iv_len, cbits, \ [all …]
|
/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/kdfs/ |
H A D | kbkdf.c | 70 size_t iv_len; member 144 OPENSSL_clear_free(ctx->iv, ctx->iv_len); in kbkdf_reset() 152 size_t iv_len, unsigned char *label, size_t label_len, in derive() argument 159 size_t written = 0, to_write, k_i_len = iv_len; in derive() 175 if (iv_len > 0) in derive() 176 memcpy(k_i, iv, iv_len); in derive() 246 if (ctx->iv_len != 0 && ctx->iv_len != h) { in kbkdf_derive() 258 ret = derive(ctx->ctx_init, ctx->mode, ctx->iv, ctx->iv_len, ctx->label, in kbkdf_derive() 325 if (p != NULL && !kbkdf_set_buffer(&ctx->iv, &ctx->iv_len, p)) in kbkdf_set_ctx_params()
|
/netbsd/crypto/external/bsd/openssl/dist/include/crypto/ |
H A D | evp.h | 296 int iv_len; member 435 key_len, iv_len, flags, init_key, cleanup, \ argument 438 nid##_##nmode, block_size, key_len, iv_len, \ 458 iv_len, cbits, flags, init_key, cleanup, \ argument 461 key_len, iv_len, flags, init_key, cleanup, set_asn1, \ 465 iv_len, cbits, flags, init_key, cleanup, \ argument 468 key_len, iv_len, flags, init_key, cleanup, set_asn1, \ 482 BLOCK_CIPHER_def_cfb(cname, kstruct, nid, key_len, iv_len, cbits, \ 484 BLOCK_CIPHER_def_ofb(cname, kstruct, nid, key_len, iv_len, cbits, \ 552 block_size, key_len, iv_len, cbits, \ argument [all …]
|
/netbsd/crypto/external/bsd/openssl/dist/crypto/evp/ |
H A D | cmeth_lib.c | 66 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 D | evp_lib.c | 258 asn1_params->iv_len = i; in evp_cipher_get_asn1_aead_params() 271 asn1_params->iv_len); in evp_cipher_set_asn1_aead_params() 366 cipher->iv_len = ivlen; in evp_cipher_cache_constants() 502 return cipher->iv_len; in EVP_CIPHER_get_iv_length() 507 if (ctx->iv_len < 0) { in EVP_CIPHER_CTX_get_iv_length() 536 ((EVP_CIPHER_CTX *)ctx)->iv_len = len; in EVP_CIPHER_CTX_get_iv_length() 538 return ctx->iv_len; in EVP_CIPHER_CTX_get_iv_length()
|
H A D | evp_enc.c | 46 ctx->iv_len = -1; in EVP_CIPHER_CTX_reset() 65 ctx->iv_len = -1; in EVP_CIPHER_CTX_reset() 93 ctx->iv_len = -1; in evp_cipher_init_internal() 1097 ctx->iv_len = -1; in EVP_CIPHER_CTX_ctrl() 1104 ctx->iv_len = -1; in EVP_CIPHER_CTX_ctrl() 1269 ctx->iv_len = -1; in EVP_CIPHER_CTX_set_params()
|
/netbsd/external/bsd/wpa/dist/src/eap_common/ |
H A D | ikev2_common.c | 434 size_t iv_len; in ikev2_decrypt_payload() local 453 iv_len = encr_alg->block_size; in ikev2_decrypt_payload() 461 if (encrypted_len < iv_len + 1 + integ_alg->hash_len) { in ikev2_decrypt_payload() 468 pos = iv + iv_len; in ikev2_decrypt_payload() 536 size_t iv_len, pad_len; in ikev2_build_encrypted() local 552 iv_len = encr_alg->block_size; in ikev2_build_encrypted() 574 iv = wpabuf_put(msg, iv_len); in ikev2_build_encrypted() 575 if (random_get_bytes(iv, iv_len)) { in ikev2_build_encrypted() 580 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; in ikev2_build_encrypted() 581 if (pad_len == iv_len) in ikev2_build_encrypted()
|
H A D | eap_sake_common.h | 76 size_t iv_len; member
|
/netbsd/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
H A D | evp-wincng.c | 74 ctx->cipher->iv_len ? ctx->iv : NULL, in wincng_do_cipher() 75 ctx->cipher->iv_len, in wincng_do_cipher() 85 ctx->cipher->iv_len ? ctx->iv : NULL, in wincng_do_cipher() 86 ctx->cipher->iv_len, in wincng_do_cipher() 222 iv_len, flags) \ argument 229 iv_len, \
|
H A D | evp-pkcs11.c | 316 ctx->cipher->iv_len ? ctx->iv : NULL, in p11_key_init() 317 ctx->cipher->iv_len in p11_key_init() 483 key_len, iv_len, flags) \ argument 490 iv_len, \
|
H A D | evp.h | 153 int iv_len; member
|
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/evp/ |
H A D | cmeth_lib.c | 43 int EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) in EVP_CIPHER_meth_set_iv_length() argument 45 cipher->iv_len = iv_len; in EVP_CIPHER_meth_set_iv_length()
|
H A D | evp_lib.c | 240 return cipher->iv_len; in EVP_CIPHER_iv_length() 252 return ctx->cipher->iv_len; in EVP_CIPHER_CTX_iv_length()
|
/netbsd/crypto/external/bsd/openssl/dist/ssl/ |
H A D | ktls.c | 70 crypto_info->iv_len = EVP_CIPHER_CTX_get_iv_length(dd); in ktls_configure_crypto() 71 if (crypto_info->iv_len < 0) in ktls_configure_crypto() 75 crypto_info->iv_len = EVP_GCM_TLS_FIXED_IV_LEN; in ktls_configure_crypto() 93 crypto_info->iv_len = EVP_CIPHER_get_iv_length(c); in ktls_configure_crypto()
|
/netbsd/external/bsd/wpa/dist/src/tls/ |
H A D | pkcs5.c | 34 size_t iv_len; member 270 params->iv_len = hdr.length; in pkcs5_get_params_pbes2() 271 wpa_hexdump(MSG_DEBUG, "PKCS #5: IV", params->iv, params->iv_len); in pkcs5_get_params_pbes2() 389 params->iv_len != 8) in pkcs5_crypto_init_pbes2() 402 wpa_hexdump(MSG_DEBUG, "PKCS #5: DES IV", params->iv, params->iv_len); in pkcs5_crypto_init_pbes2()
|
/netbsd/crypto/external/bsd/openssl/dist/test/ |
H A D | acvp_test.c | 674 const unsigned char *iv, size_t iv_len, in cipher_enc() argument 708 tst->iv, tst->iv_len, in cipher_enc_dec_test() 712 tst->iv, tst->iv_len, in cipher_enc_dec_test() 719 const unsigned char *iv, size_t iv_len, in aes_ccm_enc_dec() argument 789 tst->iv, tst->iv_len, tst->aad, tst->aad_len, in aes_ccm_enc_dec_test() 793 tst->iv, tst->iv_len, tst->aad, tst->aad_len, in aes_ccm_enc_dec_test() 798 tst->iv, tst->iv_len, tst->aad, tst->aad_len, in aes_ccm_enc_dec_test() 806 const unsigned char *iv, size_t iv_len, in aes_gcm_enc_dec() argument 877 tst->iv, tst->iv_len, tst->aad, tst->aad_len, in aes_gcm_enc_dec_test() 882 tst->iv, tst->iv_len, tst->aad, tst->aad_len, in aes_gcm_enc_dec_test() [all …]
|
H A D | evp_test.c | 530 size_t iv_len; member 627 return parse_bin(value, &cdat->iv, &cdat->iv_len); in cipher_test_parse() 629 return parse_bin(value, &cdat->next_iv, &cdat->iv_len); in cipher_test_parse() 759 expected->iv_len, 0) <= 0) { in cipher_test_enc() 821 expected->iv_len))) { in cipher_test_enc() 963 tmplen -= expected->iv_len; in cipher_test_enc() 964 expected_out += expected->iv_len; in cipher_test_enc() 965 out_misalign += expected->iv_len; in cipher_test_enc() 997 expected->iv_len))) { in cipher_test_enc() 1121 size_t iv_len; member [all …]
|
/netbsd/crypto/external/bsd/openssh/dist/ |
H A D | cipher.c | 102 u_int iv_len; /* defaults to block_size */ member 215 return (c->iv_len != 0 || (c->flags & CFLAG_CHACHAPOLY) != 0) ? in cipher_ivlen() 216 c->iv_len : c->block_size; in cipher_ivlen()
|
H A D | kex.h | 114 u_int iv_len; member
|
H A D | kex.c | 728 explicit_bzero(newkeys->enc.iv, newkeys->enc.iv_len); in kex_free_newkeys() 839 enc->iv_len = cipher_ivlen(enc->cipher); in choose_enc() 1092 need = MAXIMUM(need, newkeys->enc.iv_len); in kex_choose_conf() 1096 dh_need = MAXIMUM(dh_need, newkeys->enc.iv_len); in kex_choose_conf()
|
/netbsd/crypto/external/bsd/openssl/dist/crypto/cms/ |
H A D | cms_enc.c | 175 aparams.iv_len = ivlen; in ossl_cms_EncryptedContent_init_bio()
|