/third_party/openssl/crypto/evp/ |
D | e_aria.c | 37 int ivlen; /* IV length */ member 159 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \ argument 161 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \ 231 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aria_gcm_init_key() 238 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aria_gcm_init_key() 240 memcpy(gctx->iv, iv, gctx->ivlen); in aria_gcm_init_key() 255 gctx->ivlen = EVP_CIPHER_iv_length(c->cipher); in aria_gcm_ctrl() 266 if ((arg > EVP_MAX_IV_LENGTH) && (arg > gctx->ivlen)) { in aria_gcm_ctrl() 274 gctx->ivlen = arg; in aria_gcm_ctrl() 278 *(int *)ptr = gctx->ivlen; in aria_gcm_ctrl() [all …]
|
D | e_aes.c | 43 int ivlen; /* IV length */ member 96 int ivlen; /* IV length */ member 362 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aesni_gcm_init_key() 369 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aesni_gcm_init_key() 371 memcpy(gctx->iv, iv, gctx->ivlen); in aesni_gcm_init_key() 511 if (CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen) in aesni_ocb_init_key() 520 CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen); in aesni_ocb_init_key() 522 memcpy(octx->iv, iv, octx->ivlen); in aesni_ocb_init_key() 533 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \ argument 535 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \ [all …]
|
D | e_camellia.c | 166 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \ 168 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \ 177 keylen/8,ivlen, \ 189 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \ 191 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \
|
/third_party/openssl/crypto/engine/ |
D | eng_devcrypto.c | 73 int ivlen; member 186 size_t nblocks, ivlen; in cipher_do_cipher() local 199 ivlen = EVP_CIPHER_CTX_iv_length(ctx); in cipher_do_cipher() 200 if (ivlen > 0) in cipher_do_cipher() 203 assert(inl >= ivlen); in cipher_do_cipher() 205 ivptr = in + inl - ivlen; in cipher_do_cipher() 206 memcpy(saved_iv, ivptr, ivlen); in cipher_do_cipher() 226 if (ivlen > 0) in cipher_do_cipher() 229 assert(inl >= ivlen); in cipher_do_cipher() 231 ivptr = out + inl - ivlen; in cipher_do_cipher() [all …]
|
/third_party/openssl/test/ |
D | tls13encryptiontest.c | 251 unsigned char *iv, size_t ivlen, unsigned char *seq) in load_record() argument 274 memcpy(iv, ivtmp, ivlen); in load_record() 323 size_t ivlen, ctr; in test_tls13_encryption() local 361 ivlen = EVP_CIPHER_iv_length(ciph); in test_tls13_encryption() 362 if (!load_record(&rec, &refdata[ctr], &key, s->read_iv, ivlen, in test_tls13_encryption() 371 memcpy(s->write_iv, s->read_iv, ivlen); in test_tls13_encryption()
|
/third_party/openssl/ssl/record/ |
D | ssl3_record_tls13.c | 29 size_t ivlen, taglen, offset, loop, hdrlen; in tls13_enc() local 67 ivlen = EVP_CIPHER_CTX_iv_length(ctx); in tls13_enc() 127 if (ivlen < SEQ_NUM_SIZE) { in tls13_enc() 133 offset = ivlen - SEQ_NUM_SIZE; in tls13_enc()
|
D | ssl3_record.c | 967 int ivlen; in tls1_enc() local 972 ivlen = EVP_CIPHER_iv_length(enc); in tls1_enc() 974 ivlen = 0; in tls1_enc() 975 if (ivlen > 1) { in tls1_enc() 985 } else if (RAND_bytes(recs[ctr].input, ivlen) <= 0) { in tls1_enc()
|
/third_party/openssl/crypto/cms/ |
D | cms_enc.c | 70 int ivlen; in cms_EncryptedContent_init_bio() local 73 ivlen = EVP_CIPHER_CTX_iv_length(ctx); in cms_EncryptedContent_init_bio() 74 if (ivlen > 0) { in cms_EncryptedContent_init_bio() 75 if (RAND_bytes(iv, ivlen) <= 0) in cms_EncryptedContent_init_bio()
|
D | cms_pwri.c | 51 int ivlen; in CMS_add0_recipient_password() local 89 ivlen = EVP_CIPHER_CTX_iv_length(ctx); in CMS_add0_recipient_password() 91 if (ivlen > 0) { in CMS_add0_recipient_password() 92 if (RAND_bytes(iv, ivlen) <= 0) in CMS_add0_recipient_password()
|
/third_party/boringssl/src/crypto/fipsmodule/cipher/ |
D | e_aes.c | 134 int ivlen; // IV length member 367 CRYPTO_gcm128_setiv(&gctx->gcm, &gctx->ks.ks, iv, gctx->ivlen); in aes_gcm_init_key() 374 CRYPTO_gcm128_setiv(&gctx->gcm, &gctx->ks.ks, iv, gctx->ivlen); in aes_gcm_init_key() 376 OPENSSL_memcpy(gctx->iv, iv, gctx->ivlen); in aes_gcm_init_key() 414 gctx->ivlen = c->cipher->iv_len; in aes_gcm_ctrl() 426 if (arg > EVP_MAX_IV_LENGTH && arg > gctx->ivlen) { in aes_gcm_ctrl() 435 gctx->ivlen = arg; in aes_gcm_ctrl() 456 OPENSSL_memcpy(gctx->iv, ptr, gctx->ivlen); in aes_gcm_ctrl() 462 if (arg < 4 || (gctx->ivlen - arg) < 8) { in aes_gcm_ctrl() 468 if (c->encrypt && !RAND_bytes(gctx->iv + arg, gctx->ivlen - arg)) { in aes_gcm_ctrl() [all …]
|
/third_party/openssl/ssl/ |
D | tls13_enc.c | 134 unsigned char *iv, size_t ivlen) in tls13_derive_iv() argument 143 NULL, 0, iv, ivlen, 1); in tls13_derive_iv() 369 size_t ivlen, keylen, taglen; in derive_secret_key_and_iv() local 392 ivlen = EVP_CCM_TLS_IV_LEN; in derive_secret_key_and_iv() 411 ivlen = EVP_CIPHER_iv_length(ciph); in derive_secret_key_and_iv() 416 || !tls13_derive_iv(s, md, secret, iv, ivlen)) { in derive_secret_key_and_iv() 422 || !EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_AEAD_SET_IVLEN, ivlen, NULL) in derive_secret_key_and_iv()
|
/third_party/mbedtls/library/ |
D | pkcs12.c | 117 unsigned char *iv, size_t ivlen ) in pkcs12_pbe_derive_key_iv() argument 144 if( iv == NULL || ivlen == 0 ) in pkcs12_pbe_derive_key_iv() 147 if( ( ret = mbedtls_pkcs12_derivation( iv, ivlen, unipwd, pwdlen * 2 + 2, in pkcs12_pbe_derive_key_iv()
|
D | ssl_tls.c | 349 size_t ivlen, 851 transform->ivlen = 12; in mbedtls_ssl_derive_keys() 863 explicit_ivlen = transform->ivlen - transform->fixed_ivlen; in mbedtls_ssl_derive_keys() 900 transform->ivlen = cipher_info->iv_size; in mbedtls_ssl_derive_keys() 937 transform->minlen += transform->ivlen; in mbedtls_ssl_derive_keys() 949 transform->keylen, transform->minlen, transform->ivlen, in mbedtls_ssl_derive_keys() 968 transform->fixed_ivlen : transform->ivlen; in mbedtls_ssl_derive_keys() 988 transform->fixed_ivlen : transform->ivlen; in mbedtls_ssl_derive_keys() 1536 ssl->transform_out->ivlen, in ssl_encrypt_buf() 1567 size_t explicit_ivlen = transform->ivlen - transform->fixed_ivlen; in ssl_encrypt_buf() [all …]
|
/third_party/ltp/include/lapi/ |
D | if_alg.h | 23 uint32_t ivlen; member
|
/third_party/ffmpeg/libavformat/ |
D | crypto.c | 46 int ivlen; member 129 c->iv, c->ivlen, "decryption IV")) < 0) in crypto_open2() 139 c->iv, c->ivlen, "encryption IV")) < 0) in crypto_open2() 286 memcpy( c->decrypt_iv, c->iv, c->ivlen ); in crypto_seek()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_gnutls.c | 409 int ivlen; in crypto_cipher_init() local 468 ivlen = gcry_cipher_get_algo_blklen(a); in crypto_cipher_init() 469 if (gcry_cipher_setiv(ctx->enc, iv, ivlen) != GPG_ERR_NO_ERROR || in crypto_cipher_init() 470 gcry_cipher_setiv(ctx->dec, iv, ivlen) != GPG_ERR_NO_ERROR) { in crypto_cipher_init()
|
D | crypto_linux.c | 714 alg_iv->ivlen = iv_len; in aes_128_cbc_oper() 823 alg_iv->ivlen = iv_len; in aes_unwrap() 912 alg_iv->ivlen = iv_len; in crypto_cipher_init()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_gnutls.c | 409 int ivlen; in crypto_cipher_init() local 468 ivlen = gcry_cipher_get_algo_blklen(a); in crypto_cipher_init() 469 if (gcry_cipher_setiv(ctx->enc, iv, ivlen) != GPG_ERR_NO_ERROR || in crypto_cipher_init() 470 gcry_cipher_setiv(ctx->dec, iv, ivlen) != GPG_ERR_NO_ERROR) { in crypto_cipher_init()
|
D | crypto_linux.c | 714 alg_iv->ivlen = iv_len; in aes_128_cbc_oper() 823 alg_iv->ivlen = iv_len; in aes_unwrap() 912 alg_iv->ivlen = iv_len; in crypto_cipher_init()
|
/third_party/openssl/apps/ |
D | enc.c | 470 int ivlen = EVP_CIPHER_iv_length(cipher); in enc_main() local 474 iter, dgst, iklen+ivlen, tmpkeyiv)) { in enc_main() 480 memcpy(iv, tmpkeyiv+iklen, ivlen); in enc_main()
|
/third_party/openssl/crypto/pkcs7/ |
D | pk7_doit.c | 275 int keylen, ivlen; in PKCS7_dataInit() local 284 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit() 286 if (ivlen > 0) in PKCS7_dataInit() 287 if (RAND_bytes(iv, ivlen) <= 0) in PKCS7_dataInit() 296 if (ivlen > 0) { in PKCS7_dataInit()
|
/third_party/uboot/u-boot-2020.01/product/cipher/v2/drv/spacc/ |
D | spacc_body.h | 184 unsigned char *iv, unsigned int ivlen);
|
D | spacc_body.c | 405 int spacc_symc_setiv(unsigned int chn_num, unsigned char *iv, unsigned int ivlen) in spacc_symc_setiv() argument 411 spacc_value_return_if_max(ivlen, 33); /* 33 iv max size */ in spacc_symc_setiv() 414 crypto_memcpy(info->symc_iv, sizeof(info->symc_iv), iv, ivlen); in spacc_symc_setiv() 415 info->symc_ivlen = ivlen; in spacc_symc_setiv()
|
/third_party/openssl/crypto/pem/ |
D | pem_lib.c | 487 int ivlen; in PEM_get_EVP_CIPHER_INFO() local 546 ivlen = EVP_CIPHER_iv_length(enc); in PEM_get_EVP_CIPHER_INFO() 547 if (ivlen > 0 && *header++ != ',') { in PEM_get_EVP_CIPHER_INFO() 550 } else if (ivlen == 0 && *header == ',') { in PEM_get_EVP_CIPHER_INFO()
|
/third_party/mbedtls/include/mbedtls/ |
D | ssl.h | 1219 size_t ivlen, 1568 size_t ivlen );
|