/openssl/test/ |
H A D | cipher_overhead_test.c | 14 static int cipher_enabled(const SSL_CIPHER *ciph) in cipher_enabled() argument 20 if ((ciph->algorithm_mac & SSL_AEAD) != 0) in cipher_enabled() 23 if (ciph->algorithm_enc != SSL_eNULL in cipher_enabled() 27 if (EVP_get_digestbynid(SSL_CIPHER_get_digest_nid(ciph)) == NULL) in cipher_enabled() 36 const SSL_CIPHER *ciph; in cipher_overhead() local 40 ciph = ssl3_get_cipher(i); in cipher_overhead() 41 if (!ciph->min_dtls) in cipher_overhead() 43 if (!cipher_enabled(ciph)) { in cipher_overhead() 44 TEST_skip("Skipping disabled cipher %s", ciph->name); in cipher_overhead() 48 TEST_info("Failed getting %s", ciph->name); in cipher_overhead() [all …]
|
H A D | tls13encryptiontest.c | 312 const EVP_CIPHER *ciph = EVP_aes_128_gcm(); in test_tls13_encryption() local 356 ivlen = EVP_CIPHER_get_iv_length(ciph); in test_tls13_encryption() 367 if (EVP_CipherInit_ex(s->enc_write_ctx, ciph, NULL, key, NULL, 1) <= 0 in test_tls13_encryption() 368 || EVP_CipherInit_ex(s->enc_read_ctx, ciph, NULL, key, NULL, 0) in test_tls13_encryption()
|
H A D | threadstest.c | 350 EVP_CIPHER *ciph = EVP_CIPHER_fetch(multi_libctx, "AES-128-CBC", NULL); in thread_general_worker() local 374 || !TEST_ptr(ciph)) in thread_general_worker() 385 if (!TEST_true(EVP_EncryptInit_ex(cipherctx, ciph, NULL, key, iv)) in thread_general_worker() 407 EVP_CIPHER_free(ciph); in thread_general_worker()
|
H A D | tls13secretstest.c | 228 const EVP_CIPHER *ciph, size_t taglen, in ssl_set_new_record_layer() argument
|
/openssl/crypto/evp/ |
H A D | asymcipher.c | 144 ctx->op.ciph.cipher = cipher; in evp_pkey_asym_cipher_init() 145 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov)); in evp_pkey_asym_cipher_init() 146 if (ctx->op.ciph.algctx == NULL) { in evp_pkey_asym_cipher_init() 159 ret = cipher->encrypt_init(ctx->op.ciph.algctx, provkey, params); in evp_pkey_asym_cipher_init() 167 ret = cipher->decrypt_init(ctx->op.ciph.algctx, provkey, params); in evp_pkey_asym_cipher_init() 243 if (ctx->op.ciph.algctx == NULL) in EVP_PKEY_encrypt() 246 ret = ctx->op.ciph.cipher->encrypt(ctx->op.ciph.algctx, out, outlen, in EVP_PKEY_encrypt() 285 if (ctx->op.ciph.algctx == NULL) in EVP_PKEY_decrypt() 288 ret = ctx->op.ciph.cipher->decrypt(ctx->op.ciph.algctx, out, outlen, in EVP_PKEY_decrypt()
|
H A D | pmeth_lib.c | 399 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) in evp_pkey_ctx_free_old_ops() 400 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); in evp_pkey_ctx_free_old_ops() 402 ctx->op.ciph.algctx = NULL; in evp_pkey_ctx_free_old_ops() 403 ctx->op.ciph.cipher = NULL; in evp_pkey_ctx_free_old_ops() 541 rctx->op.ciph.cipher = pctx->op.ciph.cipher; in EVP_PKEY_CTX_dup() 548 rctx->op.ciph.algctx in EVP_PKEY_CTX_dup() 549 = pctx->op.ciph.cipher->dupctx(pctx->op.ciph.algctx); in EVP_PKEY_CTX_dup() 696 ctx->op.ciph.cipher->set_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_set_params() 740 ctx->op.ciph.cipher->get_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_get_params() 783 return ctx->op.ciph.cipher->gettable_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_gettable_params() [all …]
|
H A D | names.c | 173 void (*fn) (const EVP_CIPHER *ciph, 186 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all() argument 200 void EVP_CIPHER_do_all_sorted(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all_sorted() argument 216 void (*fn) (const EVP_MD *ciph,
|
H A D | evp_local.h | 330 int evp_do_ciph_getparams(const EVP_CIPHER *ciph, OSSL_PARAM params[]); 331 int evp_do_ciph_ctx_getparams(const EVP_CIPHER *ciph, void *provctx, 333 int evp_do_ciph_ctx_setparams(const EVP_CIPHER *ciph, void *provctx,
|
/openssl/ssl/record/methods/ |
H A D | tls1_meth.c | 21 const EVP_CIPHER *ciph, in tls1_set_crypto_state() argument 59 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) == 0) { in tls1_set_crypto_state() 84 if (EVP_CIPHER_get_mode(ciph) == EVP_CIPH_GCM_MODE) { in tls1_set_crypto_state() 85 if (!EVP_DecryptInit_ex(ciph_ctx, ciph, NULL, key, NULL) in tls1_set_crypto_state() 91 } else if (EVP_CIPHER_get_mode(ciph) == EVP_CIPH_CCM_MODE) { in tls1_set_crypto_state() 92 if (!EVP_DecryptInit_ex(ciph_ctx, ciph, NULL, NULL, NULL) in tls1_set_crypto_state() 104 if (!EVP_DecryptInit_ex(ciph_ctx, ciph, NULL, key, iv)) { in tls1_set_crypto_state() 110 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) != 0 in tls1_set_crypto_state() 117 if (EVP_CIPHER_get0_provider(ciph) != NULL in tls1_set_crypto_state() 118 && !ossl_set_tls_provider_parameters(rl, ciph_ctx, ciph, md)) in tls1_set_crypto_state()
|
H A D | ssl3_meth.c | 20 const EVP_CIPHER *ciph, in ssl3_set_crypto_state() argument 54 if (!EVP_DecryptInit_ex(ciph_ctx, ciph, NULL, key, iv)) { in ssl3_set_crypto_state() 59 if (EVP_CIPHER_get0_provider(ciph) != NULL in ssl3_set_crypto_state() 60 && !ossl_set_tls_provider_parameters(rl, ciph_ctx, ciph, md)) { in ssl3_set_crypto_state()
|
H A D | ktls_meth.c | 374 const EVP_CIPHER *ciph, 404 if (!ktls_int_check_supported_cipher(rl, ciph, md, taglen)) 418 if (!ktls_configure_crypto(rl->libctx, rl->version, ciph, md, rl->sequence, 499 const EVP_CIPHER *ciph, size_t taglen, 511 ciph, taglen, mactype, md, comp, prev, 521 ivlen, mackey, mackeylen, ciph,
|
H A D | tls13_meth.c | 20 const EVP_CIPHER *ciph, in tls13_set_crypto_state() argument 43 mode = EVP_CIPHER_get_mode(ciph); in tls13_set_crypto_state() 45 if (EVP_DecryptInit_ex(ciph_ctx, ciph, NULL, NULL, NULL) <= 0 in tls13_set_crypto_state()
|
H A D | recmethod_local.h | 35 const EVP_CIPHER *ciph, 232 const EVP_CIPHER *ciph, 262 const EVP_CIPHER *ciph, size_t taglen,
|
H A D | tls_common.c | 36 const EVP_CIPHER *ciph, in ossl_set_tls_provider_parameters() argument 47 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) == 0 in ossl_set_tls_provider_parameters() 1047 const EVP_CIPHER *ciph, size_t taglen, in tls_int_new_record_layer() argument 1166 const EVP_CIPHER *ciph, size_t taglen, in tls_new_record_layer() argument 1178 ciph, taglen, mactype, md, comp, prev, in tls_new_record_layer() 1208 ivlen, mackey, mackeylen, ciph, in tls_new_record_layer()
|
H A D | tlsany_meth.c | 19 const EVP_CIPHER *ciph, in tls_any_set_crypto_state() argument
|
H A D | dtls_meth.c | 629 const EVP_CIPHER *ciph, size_t taglen, in dtls_new_record_layer() argument 641 ciph, taglen, mactype, md, comp, prev, in dtls_new_record_layer() 682 ivlen, mackey, mackeylen, ciph, in dtls_new_record_layer()
|
/openssl/ssl/ |
H A D | s3_enc.c | 96 const EVP_CIPHER *ciph; in ssl3_change_cipher_state() local 103 ciph = s->s3.tmp.new_sym_enc; in ssl3_change_cipher_state() 121 key_len = EVP_CIPHER_get_key_length(ciph); in ssl3_change_cipher_state() 122 iv_len = EVP_CIPHER_get_iv_length(ciph); in ssl3_change_cipher_state() 151 md_len, ciph, 0, NID_undef, md, comp)) { in ssl3_change_cipher_state() 194 if (!EVP_CipherInit_ex(dd, ciph, NULL, key, iv, (which & SSL3_CC_WRITE))) { in ssl3_change_cipher_state() 199 if (EVP_CIPHER_get0_provider(ciph) != NULL in ssl3_change_cipher_state() 200 && !tls_provider_set_tls_params(s, dd, ciph, md)) { in ssl3_change_cipher_state()
|
H A D | tls13_enc.c | 342 const EVP_CIPHER *ciph, in derive_secret_key_and_iv() argument 369 *keylen = EVP_CIPHER_get_key_length(ciph); in derive_secret_key_and_iv() 371 mode = EVP_CIPHER_get_mode(ciph); in derive_secret_key_and_iv() 401 iivlen = EVP_CIPHER_get_iv_length(ciph); in derive_secret_key_and_iv() 416 if (EVP_CipherInit_ex(ciph_ctx, ciph, NULL, NULL, NULL, sending) <= 0 in derive_secret_key_and_iv()
|
H A D | d1_lib.c | 959 const SSL_CIPHER *ciph = SSL_get_current_cipher(ssl); in DTLS_get_data_mtu() local 968 if (ciph == NULL) in DTLS_get_data_mtu() 971 if (!ssl_cipher_get_overhead(ciph, &mac_overhead, &int_overhead, in DTLS_get_data_mtu()
|
/openssl/crypto/cms/ |
H A D | cms_enc.c | 221 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument 230 if (ciph) { in CMS_EncryptedData_set1_key() 243 return ossl_cms_EncryptedContent_init(ec, ciph, key, keylen, in CMS_EncryptedData_set1_key()
|
/openssl/ssl/quic/ |
H A D | quic_impl.c | 218 static const SSL_CIPHER ciph = { in ossl_quic_get_cipher() local 235 return &ciph; in ossl_quic_get_cipher()
|
/openssl/ssl/record/ |
H A D | recordmethod.h | 135 const EVP_CIPHER *ciph,
|
H A D | record.h | 256 const EVP_CIPHER *ciph, size_t taglen,
|
/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_ocb.c | 163 size_t inl, OSSL_ocb_cipher_fn ciph) in aes_ocb_block_update_internal() argument 178 if (!ciph(ctx, buf, out, AES_BLOCK_SIZE)) { in aes_ocb_block_update_internal() 193 if (!ciph(ctx, in, out, nextblocks)) { in aes_ocb_block_update_internal()
|
/openssl/engines/ |
H A D | e_dasync.c | 585 const EVP_CIPHER *ciph) in dasync_cipher_ctrl_helper() argument 597 size_t sz = EVP_CIPHER_impl_ctx_size(ciph); in dasync_cipher_ctrl_helper()
|