Home
last modified time | relevance | path

Searched refs:ciph (Results 1 – 25 of 37) sorted by relevance

12

/openssl/test/
H A Dcipher_overhead_test.c14 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 Dtls13encryptiontest.c311 const EVP_CIPHER *ciph = EVP_aes_128_gcm(); in test_tls13_encryption() local
328 ivlen = EVP_CIPHER_get_iv_length(ciph); in test_tls13_encryption()
H A Dthreadstest.c818 EVP_CIPHER *ciph = EVP_CIPHER_fetch(multi_libctx, "AES-128-CBC", NULL); in thread_general_worker() local
842 || !TEST_ptr(ciph)) in thread_general_worker()
853 if (!TEST_true(EVP_EncryptInit_ex(cipherctx, ciph, NULL, key, iv)) in thread_general_worker()
875 EVP_CIPHER_free(ciph); in thread_general_worker()
H A Dtls13secretstest.c232 const EVP_CIPHER *ciph, size_t taglen, in ssl_set_new_record_layer() argument
/openssl/crypto/evp/
H A Dasymcipher.c144 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 Dpmeth_lib.c376 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) in evp_pkey_ctx_free_old_ops()
377 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); in evp_pkey_ctx_free_old_ops()
379 ctx->op.ciph.algctx = NULL; in evp_pkey_ctx_free_old_ops()
380 ctx->op.ciph.cipher = NULL; in evp_pkey_ctx_free_old_ops()
522 rctx->op.ciph.cipher = pctx->op.ciph.cipher; in EVP_PKEY_CTX_dup()
531 rctx->op.ciph.algctx in EVP_PKEY_CTX_dup()
532 = pctx->op.ciph.cipher->dupctx(pctx->op.ciph.algctx); in EVP_PKEY_CTX_dup()
683 ctx->op.ciph.cipher->set_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_set_params()
727 ctx->op.ciph.cipher->get_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_get_params()
776 return ctx->op.ciph.cipher->gettable_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_gettable_params()
[all …]
H A Dnames.c199 void (*fn) (const EVP_CIPHER *ciph,
212 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all() argument
226 void EVP_CIPHER_do_all_sorted(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all_sorted() argument
242 void (*fn) (const EVP_MD *ciph,
H A Devp_local.h342 int evp_do_ciph_getparams(const EVP_CIPHER *ciph, OSSL_PARAM params[]);
343 int evp_do_ciph_ctx_getparams(const EVP_CIPHER *ciph, void *provctx,
345 int evp_do_ciph_ctx_setparams(const EVP_CIPHER *ciph, void *provctx,
/openssl/ssl/record/methods/
H A Dtls1_meth.c23 const EVP_CIPHER *ciph, in tls1_set_crypto_state() argument
62 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) == 0) { in tls1_set_crypto_state()
87 if (EVP_CIPHER_get_mode(ciph) == EVP_CIPH_GCM_MODE) { in tls1_set_crypto_state()
88 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, NULL, enc) in tls1_set_crypto_state()
94 } else if (EVP_CIPHER_get_mode(ciph) == EVP_CIPH_CCM_MODE) { in tls1_set_crypto_state()
95 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, NULL, NULL, enc) in tls1_set_crypto_state()
107 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, iv, enc)) { in tls1_set_crypto_state()
113 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) != 0 in tls1_set_crypto_state()
126 && !ossl_set_tls_provider_parameters(rl, ciph_ctx, ciph, md)) { in tls1_set_crypto_state()
H A Dktls_meth.c293 const EVP_CIPHER *ciph, in ktls_set_crypto_state() argument
315 if (!ktls_int_check_supported_cipher(rl, ciph, md, taglen)) in ktls_set_crypto_state()
328 if (!ktls_configure_crypto(rl->libctx, rl->version, ciph, md, rl->sequence, in ktls_set_crypto_state()
408 const EVP_CIPHER *ciph, size_t taglen, in ktls_new_record_layer() argument
420 ciph, taglen, md, comp, prev, in ktls_new_record_layer()
430 ivlen, mackey, mackeylen, ciph, in ktls_new_record_layer()
H A Dssl3_meth.c21 const EVP_CIPHER *ciph, in ssl3_set_crypto_state() argument
62 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, iv, enc)) { in ssl3_set_crypto_state()
72 && !ossl_set_tls_provider_parameters(rl, ciph_ctx, ciph, md)) { in ssl3_set_crypto_state()
H A Dtls13_meth.c20 const EVP_CIPHER *ciph, in tls13_set_crypto_state() argument
44 if (EVP_CIPHER_is_a(ciph, "NULL") && mactype == NID_hmac && md != NULL) { in tls13_set_crypto_state()
69 mode = EVP_CIPHER_get_mode(ciph); in tls13_set_crypto_state()
71 if (EVP_CipherInit_ex(ciph_ctx, ciph, NULL, NULL, NULL, enc) <= 0 in tls13_set_crypto_state()
H A Drecmethod_local.h104 const EVP_CIPHER *ciph,
409 const EVP_CIPHER *ciph,
442 const EVP_CIPHER *ciph, size_t taglen,
H A Dtlsany_meth.c21 const EVP_CIPHER *ciph, in tls_any_set_crypto_state() argument
H A Dtls_common.c62 const EVP_CIPHER *ciph, in ossl_set_tls_provider_parameters() argument
73 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) == 0 in ossl_set_tls_provider_parameters()
1253 const EVP_CIPHER *ciph, size_t taglen, in tls_int_new_record_layer() argument
1369 && !EVP_CIPHER_is_a(ciph, "NULL") in tls_int_new_record_layer()
1370 && !EVP_CIPHER_is_a(ciph, "RC4")) { in tls_int_new_record_layer()
1391 const EVP_CIPHER *ciph, size_t taglen, in tls_new_record_layer() argument
1403 ciph, taglen, md, comp, prev, in tls_new_record_layer()
1433 ivlen, mackey, mackeylen, ciph, in tls_new_record_layer()
H A Ddtls_meth.c630 const EVP_CIPHER *ciph, size_t taglen, in dtls_new_record_layer() argument
642 ciph, taglen, md, comp, prev, in dtls_new_record_layer()
681 ivlen, mackey, mackeylen, ciph, in dtls_new_record_layer()
/openssl/crypto/cms/
H A Dcms_enc.c222 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument
231 if (ciph) { in CMS_EncryptedData_set1_key()
244 return ossl_cms_EncryptedContent_init(ec, ciph, key, keylen, in CMS_EncryptedData_set1_key()
/openssl/ssl/
H A Ds3_enc.c95 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, NULL)) { in ssl3_change_cipher_state()
H A Dtls13_enc.c348 const EVP_CIPHER *ciph, in derive_secret_key_and_iv() argument
377 if (EVP_CIPHER_is_a(ciph, "NULL") in derive_secret_key_and_iv()
390 *keylen = EVP_CIPHER_get_key_length(ciph); in derive_secret_key_and_iv()
392 mode = EVP_CIPHER_get_mode(ciph); in derive_secret_key_and_iv()
422 iivlen = EVP_CIPHER_get_iv_length(ciph); in derive_secret_key_and_iv()
H A Dd1_lib.c935 const SSL_CIPHER *ciph = SSL_get_current_cipher(ssl); in DTLS_get_data_mtu() local
944 if (ciph == NULL) in DTLS_get_data_mtu()
947 if (!ssl_cipher_get_overhead(ciph, &mac_overhead, &int_overhead, in DTLS_get_data_mtu()
/openssl/ssl/quic/
H A Dquic_tls.c96 const EVP_CIPHER *ciph, size_t taglen, in quic_new_record_layer() argument
164 if (EVP_CIPHER_is_a(ciph, "AES-128-GCM")) { in quic_new_record_layer()
166 } else if (EVP_CIPHER_is_a(ciph, "AES-256-GCM")) { in quic_new_record_layer()
168 } else if (EVP_CIPHER_is_a(ciph, "CHACHA20-POLY1305")) { in quic_new_record_layer()
/openssl/providers/implementations/ciphers/
H A Dcipher_aes_ocb.c163 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/include/internal/
H A Drecordmethod.h135 const EVP_CIPHER *ciph,
/openssl/ssl/record/
H A Drecord.h180 const EVP_CIPHER *ciph, size_t taglen,
/openssl/engines/
H A De_dasync.c629 const EVP_CIPHER *ciph) in dasync_cipher_ctrl_helper() argument
641 size_t sz = EVP_CIPHER_impl_ctx_size(ciph); in dasync_cipher_ctrl_helper()

Completed in 96 milliseconds

12