Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/openssl/crypto/evp/
H A Dcmeth_lib.c27 if (cipher != NULL) { in EVP_CIPHER_meth_new()
33 return cipher; in EVP_CIPHER_meth_new()
44 if (cipher->prov != NULL) in EVP_CIPHER_meth_dup()
47 if ((to = EVP_CIPHER_meth_new(cipher->nid, cipher->block_size, in EVP_CIPHER_meth_dup()
60 if (cipher == NULL || cipher->origin != EVP_ORIG_METH) in EVP_CIPHER_meth_free()
77 if (cipher->flags != 0) in EVP_CIPHER_meth_set_flags()
80 cipher->flags = flags; in EVP_CIPHER_meth_set_flags()
102 cipher->init = init; in EVP_CIPHER_meth_set_init()
158 cipher->ctrl = ctrl; in EVP_CIPHER_meth_set_ctrl()
168 return cipher->init; in EVP_CIPHER_meth_get_init()
[all …]
H A Devp_enc.c38 if (ctx->cipher == NULL || ctx->cipher->prov == NULL) in OSSL_SAFE_MATH_SIGNED()
57 if (ctx->cipher->cleanup && !ctx->cipher->cleanup(ctx)) in OSSL_SAFE_MATH_SIGNED()
116 if (cipher == NULL && ctx->cipher == NULL) { in evp_cipher_init_internal()
131 && (cipher == NULL || cipher->nid == ctx->cipher->nid)) in evp_cipher_init_internal()
149 || (cipher == NULL && ctx->cipher != NULL in evp_cipher_init_internal()
161 if (cipher != NULL && ctx->cipher != NULL) { in evp_cipher_init_internal()
171 if (cipher != NULL && ctx->cipher != NULL) { in evp_cipher_init_internal()
181 cipher = ctx->cipher; in evp_cipher_init_internal()
218 ctx->cipher = cipher; in evp_cipher_init_internal()
352 ctx->cipher = cipher; in evp_cipher_init_internal()
[all …]
H A Dasymcipher.c105 cipher = in evp_pkey_asym_cipher_init()
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()
324 if (cipher == NULL) in evp_asym_cipher_new()
331 cipher->prov = prov; in evp_asym_cipher_new()
334 return cipher; in evp_asym_cipher_new()
448 return cipher; in evp_asym_cipher_from_algorithm()
458 if (cipher == NULL) in EVP_ASYM_CIPHER_free()
479 return cipher->prov; in EVP_ASYM_CIPHER_get0_provider()
504 return evp_is_a(cipher->prov, cipher->name_id, NULL, name); in EVP_ASYM_CIPHER_is_a()
[all …]
H A Devp_lib.c90 cipher = c->cipher; in evp_cipher_param_to_asn1_ex()
161 cipher = c->cipher; in evp_cipher_asn1_to_param_ex()
369 return (cipher == NULL) ? 0 : cipher->block_size; in EVP_CIPHER_get_block_size()
427 return ctx->cipher; in EVP_CIPHER_CTX_cipher()
444 cipher = (EVP_CIPHER *)ctx->cipher; in EVP_CIPHER_CTX_get1_cipher()
447 return cipher; in EVP_CIPHER_CTX_get1_cipher()
457 return cipher == NULL ? 0 : cipher->flags; in EVP_CIPHER_get_flags()
487 return (cipher == NULL) ? 0 : cipher->iv_len; in EVP_CIPHER_get_iv_length()
672 return (cipher == NULL) ? NID_undef : cipher->nid; in EVP_CIPHER_get_nid()
685 return evp_is_a(cipher->prov, cipher->name_id, NULL, name); in EVP_CIPHER_is_a()
[all …]
H A Dbio_enc.c35 EVP_CIPHER_CTX *cipher; member
71 ctx->cipher = EVP_CIPHER_CTX_new(); in enc_new()
72 if (ctx->cipher == NULL) { in enc_new()
96 EVP_CIPHER_CTX_free(b->cipher); in enc_free()
181 if (!EVP_CipherUpdate(ctx->cipher, in enc_read()
199 if (!EVP_CipherUpdate(ctx->cipher, in enc_read()
268 if (!EVP_CipherUpdate(ctx->cipher, in enc_write()
379 *c_ctx = ctx->cipher; in enc_ctrl()
385 dctx->cipher = EVP_CIPHER_CTX_new(); in enc_ctrl()
386 if (dctx->cipher == NULL) in enc_ctrl()
[all …]
/openssl/test/ssl-tests/
H A D25-cipher.cnf5 test-0 = 0-cipher-server-1
6 test-1 = 1-cipher-server-2
8 test-3 = 3-cipher-server-pref-1
9 test-4 = 4-cipher-server-pref-2
16 [0-cipher-server-1]
19 [0-cipher-server-1-ssl]
23 [0-cipher-server-1-server]
29 [0-cipher-server-1-client]
41 [1-cipher-server-2]
44 [1-cipher-server-2-ssl]
[all …]
/openssl/test/recipes/30-test_evp_data/
H A Devpkdf_krb5.txt18 Ctrl.cipher = cipher:DES-EDE3-CBC
24 Ctrl.cipher = cipher:DES-EDE3-CBC
30 Ctrl.cipher = cipher:DES-EDE3-CBC
36 Ctrl.cipher = cipher:DES-EDE3-CBC
42 Ctrl.cipher = cipher:DES-EDE3-CBC
48 Ctrl.cipher = cipher:DES-EDE3-CBC
54 Ctrl.cipher = cipher:DES-EDE3-CBC
60 Ctrl.cipher = cipher:DES-EDE3-CBC
66 Ctrl.cipher = cipher:DES-EDE3-CBC
91 Ctrl.cipher = cipher:AES-128-CBC
[all …]
/openssl/doc/man3/
H A DEVP_CIPHER_meth_new.pod26 void EVP_CIPHER_meth_free(EVP_CIPHER *cipher);
31 int EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher,
49 int EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher,
80 EVP_CIPHER_meth_dup() creates a copy of B<cipher>.
89 behaviours in the particular B<cipher>.
101 The cipher mode.
105 This cipher is of variable length.
191 B<cipher>.
197 B<cipher>.
219 (more or other than the cipher IV).
[all …]
H A DSSL_CIPHER_get_name.pod26 const char *SSL_CIPHER_get_name(const SSL_CIPHER *cipher);
45 B<cipher> is NULL, it returns "(NONE)".
48 B<cipher>. If the B<cipher> is NULL, it returns "(NONE)". If the B<cipher>
58 If B<cipher> is NULL, 0 is returned.
61 version that first defined the cipher. It returns "(NONE)" if B<cipher> is NULL.
64 If there is no cipher (e.g. for cipher suites with no encryption) then
69 for AEAD cipher suites) then B<NID_undef> is returned.
102 error occurs or the indicated cipher is not found.
108 cipher B<c>.
123 Textual representation of the cipher name.
[all …]
H A DEVP_ASYM_CIPHER_free.pod18 void EVP_ASYM_CIPHER_free(EVP_ASYM_CIPHER *cipher);
19 int EVP_ASYM_CIPHER_up_ref(EVP_ASYM_CIPHER *cipher);
20 const char *EVP_ASYM_CIPHER_get0_name(const EVP_ASYM_CIPHER *cipher);
21 int EVP_ASYM_CIPHER_is_a(const EVP_ASYM_CIPHER *cipher, const char *name);
24 void (*fn)(EVP_ASYM_CIPHER *cipher,
27 int EVP_ASYM_CIPHER_names_do_all(const EVP_ASYM_CIPHER *cipher,
53 EVP_ASYM_CIPHER_is_a() returns 1 if I<cipher> is an implementation of an
56 EVP_ASYM_CIPHER_get0_provider() returns the provider that I<cipher> was
65 implementation for the given I<cipher>. Note that the I<cipher> may have
68 by the I<cipher> object and should not be freed by the caller.
[all …]
H A DEVP_EncryptInit.pod99 - EVP cipher routines
529 If the cipher is a fixed length cipher then attempting to set the key
556 of the cipher OBJECT IDENTIFIER and as such it ignores the cipher parameters
564 with I<name>, otherwise 0. If I<cipher> is a legacy cipher (it's the return
602 If the cipher is a stream cipher then EVP_CIPH_STREAM_CIPHER is returned.
676 Gets the mode for the associated cipher algorithm I<cipher>.
682 Gets the key length for the associated cipher algorithm I<cipher>.
687 Gets the IV length for the associated cipher algorithm I<cipher>.
692 Gets the block size for the associated cipher algorithm I<cipher>.
716 Gets 1 if the cipher algorithm I<cipher> uses ciphertext stealing,
[all …]
/openssl/crypto/engine/
H A Deng_openssl.c234 EVP_CIPHER *cipher; in test_r4_cipher() local
243 cipher = NULL; in test_r4_cipher()
245 r4_cipher = cipher; in test_r4_cipher()
259 EVP_CIPHER *cipher; in test_r4_40_cipher() local
268 cipher = NULL; in test_r4_40_cipher()
270 r4_40_cipher = cipher; in test_r4_40_cipher()
286 const EVP_CIPHER *cipher; in test_cipher_nids() local
301 if (!cipher) { in openssl_ciphers()
307 *cipher = test_r4_cipher(); in openssl_ciphers()
309 *cipher = test_r4_40_cipher(); in openssl_ciphers()
[all …]
/openssl/providers/implementations/macs/
H A Dcmac_prov.c52 PROV_CIPHER cipher; member
81 ossl_prov_cipher_reset(&macctx->cipher); in cmac_free()
98 || !ossl_prov_cipher_copy(&dst->cipher, &src->cipher)) { in cmac_dup()
134 const EVP_CIPHER *cipher = ossl_prov_cipher_cipher(&macctx->cipher); in tdes_check_param() local
137 if (EVP_CIPHER_is_a(cipher, "DES-EDE3-CBC")) { in tdes_check_param()
164 ossl_prov_cipher_cipher(&macctx->cipher), in cmac_setkey()
166 ossl_prov_cipher_reset(&macctx->cipher); in cmac_setkey()
272 const EVP_CIPHER *cipher = ossl_prov_cipher_cipher(&macctx->cipher); in cmac_set_ctx_params() local
274 if (!EVP_CIPHER_is_a(cipher, "AES-256-CBC") in cmac_set_ctx_params()
275 && !EVP_CIPHER_is_a(cipher, "AES-192-CBC") in cmac_set_ctx_params()
[all …]
/openssl/test/
H A Dafalgtest.c31 const EVP_CIPHER *cipher; in test_afalg_aes_cbc() local
68 cipher = EVP_aes_128_cbc(); in test_afalg_aes_cbc()
72 cipher = EVP_aes_192_cbc(); in test_afalg_aes_cbc()
76 cipher = EVP_aes_256_cbc(); in test_afalg_aes_cbc()
80 cipher = NULL; in test_afalg_aes_cbc()
85 if (!TEST_true(EVP_CipherInit_ex(ctx, cipher, e, key, iv, 1)) in test_afalg_aes_cbc()
95 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, e, key, iv, 0)) in test_afalg_aes_cbc()
115 const EVP_CIPHER *cipher; in test_pr16743() local
120 cipher = ENGINE_get_cipher(e, NID_aes_128_cbc); in test_pr16743()
122 if (cipher != NULL && ctx != NULL) in test_pr16743()
[all …]
/openssl/crypto/cms/
H A Dcms_enc.c31 const EVP_CIPHER *cipher = NULL; in ossl_cms_EncryptedContent_init_bio() local
44 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio()
56 cipher = ec->cipher; in ossl_cms_EncryptedContent_init_bio()
61 ec->cipher = NULL; in ossl_cms_EncryptedContent_init_bio()
63 cipher = EVP_get_cipherbyobj(calg->algorithm); in ossl_cms_EncryptedContent_init_bio()
65 if (cipher != NULL) { in ossl_cms_EncryptedContent_init_bio()
69 cipher = fetched_ciph; in ossl_cms_EncryptedContent_init_bio()
71 if (cipher == NULL) { in ossl_cms_EncryptedContent_init_bio()
206 const EVP_CIPHER *cipher, in ossl_cms_EncryptedContent_init() argument
210 ec->cipher = cipher; in ossl_cms_EncryptedContent_init()
[all …]
/openssl/providers/implementations/keymgmt/
H A Dmac_legacy_kmgmt.c61 PROV_CIPHER cipher; member
98 ossl_prov_cipher_reset(&mackey->cipher); in ossl_mac_key_free()
168 || (key1->cipher.cipher == NULL && key2->cipher.cipher != NULL) in mac_match()
169 || (key1->cipher.cipher != NULL && key2->cipher.cipher == NULL)) in mac_match()
175 if (key1->cipher.cipher != NULL) in mac_match()
176 ok = ok && EVP_CIPHER_is_a(key1->cipher.cipher, in mac_match()
177 EVP_CIPHER_get0_name(key2->cipher.cipher)); in mac_match()
250 if (key->cipher.cipher != NULL in key_to_params()
253 EVP_CIPHER_get0_name(key->cipher.cipher))) in key_to_params()
257 if (key->cipher.engine != NULL in key_to_params()
[all …]
/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c53 PROV_CIPHER cipher; member
88 ossl_prov_cipher_reset(&ctx->cipher); in krb5kdf_reset()
115 || !ossl_prov_cipher_copy(&dest->cipher, &src->cipher)) in krb5kdf_dup()
129 const EVP_CIPHER *cipher; in krb5kdf_derive() local
135 cipher = ossl_prov_cipher_cipher(&ctx->cipher); in krb5kdf_derive()
136 if (cipher == NULL) { in krb5kdf_derive()
148 engine = ossl_prov_cipher_engine(&ctx->cipher); in krb5kdf_derive()
194 const EVP_CIPHER *cipher; in krb5kdf_get_ctx_params() local
198 cipher = ossl_prov_cipher_cipher(&ctx->cipher); in krb5kdf_get_ctx_params()
199 if (cipher) in krb5kdf_get_ctx_params()
[all …]
/openssl/crypto/pkcs12/
H A Dp12_crpt.c24 ASN1_TYPE *param, const EVP_CIPHER *cipher, in PKCS12_PBE_keyivgen_ex() argument
34 if (cipher == NULL) in PKCS12_PBE_keyivgen_ex()
52 iter, EVP_CIPHER_get_key_length(cipher), in PKCS12_PBE_keyivgen_ex()
59 if (EVP_CIPHER_get_iv_length(cipher) > 0) { in PKCS12_PBE_keyivgen_ex()
61 iter, EVP_CIPHER_get_iv_length(cipher), in PKCS12_PBE_keyivgen_ex()
72 ret = EVP_CipherInit_ex(ctx, cipher, NULL, key, piv, en_de); in PKCS12_PBE_keyivgen_ex()
79 ASN1_TYPE *param, const EVP_CIPHER *cipher, in PKCS12_PBE_keyivgen() argument
82 return PKCS12_PBE_keyivgen_ex(ctx, pass, passlen, param, cipher, md, en_de, in PKCS12_PBE_keyivgen()
/openssl/doc/man1/
H A Dopenssl-ciphers.pod.in6 openssl-ciphers - SSL cipher display and cipher list command
106 A cipher list of TLSv1.2 and below ciphersuites to convert to a cipher
115 The cipher list consists of one or more I<cipher strings> separated by colons.
118 The cipher string may reference a cipher using its standard name from
131 Lists of cipher suites can be combined in a single cipher string using the
162 the default cipher list as defined below. Unlike cipher strings,
252 Curve DH (ECDH) cipher suites.
257 cipher suites.
428 =head2 SSL v3.0 cipher suites
449 =head2 TLS v1.0 cipher suites
[all …]
/openssl/demos/cipher/
H A Daeskeywrap.c60 EVP_CIPHER *cipher = NULL; in aes_wrap_encrypt() local
75 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-256-WRAP", propq)) == NULL) in aes_wrap_encrypt()
82 if (!EVP_EncryptInit_ex2(ctx, cipher, wrap_key, wrap_iv, /* params */ NULL)) in aes_wrap_encrypt()
108 EVP_CIPHER_free(cipher); in aes_wrap_encrypt()
118 EVP_CIPHER *cipher = NULL; in aes_wrap_decrypt() local
132 if ((cipher = EVP_CIPHER_fetch(libctx, "aes-256-wrap", propq)) == NULL) in aes_wrap_decrypt()
139 if (!EVP_DecryptInit_ex2(ctx, cipher, wrap_key, wrap_iv, /* params */ NULL)) in aes_wrap_decrypt()
165 EVP_CIPHER_free(cipher); in aes_wrap_decrypt()
H A Dariacbc.c59 EVP_CIPHER *cipher = NULL; in aria_cbc_encrypt() local
72 if ((cipher = EVP_CIPHER_fetch(libctx, "ARIA-256-CBC", propq)) == NULL) in aria_cbc_encrypt()
79 if (!EVP_EncryptInit_ex2(ctx, cipher, cbc_key, cbc_iv, /* params */ NULL)) in aria_cbc_encrypt()
105 EVP_CIPHER_free(cipher); in aria_cbc_encrypt()
115 EVP_CIPHER *cipher = NULL; in aria_cbc_decrypt() local
127 if ((cipher = EVP_CIPHER_fetch(libctx, "ARIA-256-CBC", propq)) == NULL) in aria_cbc_decrypt()
134 if (!EVP_DecryptInit_ex2(ctx, cipher, cbc_key, cbc_iv, /* params */ NULL)) in aria_cbc_decrypt()
160 EVP_CIPHER_free(cipher); in aria_cbc_decrypt()
H A Daesgcm.c74 EVP_CIPHER *cipher = NULL; in aes_gcm_encrypt() local
92 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-256-GCM", propq)) == NULL) in aes_gcm_encrypt()
106 if (!EVP_EncryptInit_ex2(ctx, cipher, gcm_key, gcm_iv, params)) in aes_gcm_encrypt()
141 EVP_CIPHER_free(cipher); in aes_gcm_encrypt()
151 EVP_CIPHER *cipher = NULL; in aes_gcm_decrypt() local
167 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-256-GCM", propq)) == NULL) in aes_gcm_decrypt()
178 if (!EVP_DecryptInit_ex2(ctx, cipher, gcm_key, gcm_iv, params)) in aes_gcm_decrypt()
213 EVP_CIPHER_free(cipher); in aes_gcm_decrypt()
/openssl/apps/
H A Denc.c123 EVP_CIPHER *cipher = NULL; in enc_main() local
311 cipher = NULL; in enc_main()
333 if (!opt_cipher(ciphername, &cipher)) in enc_main()
335 if (cipher && (EVP_CIPHER_mode(cipher) == EVP_CIPH_WRAP_MODE)) { in enc_main()
401 EVP_CIPHER_get0_name(cipher), in enc_main()
497 if (cipher != NULL) { in enc_main()
605 && EVP_CIPHER_get_iv_length(cipher) != 0 in enc_main()
726 EVP_CIPHER_free(cipher); in enc_main()
740 const EVP_CIPHER *cipher; in show_ciphers() local
746 cipher = EVP_get_cipherbyname(name->name); in show_ciphers()
[all …]
/openssl/providers/implementations/ciphers/
H A Dcipher_cts.c107 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs1_encrypt()
142 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs1_decrypt()
149 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs1_decrypt()
187 if (!ctx->hw->cipher(ctx, out, ct_mid.c, CTS_BLOCK_SIZE)) in cts128_cs1_decrypt()
206 return ctx->hw->cipher(ctx, out, in, len) ? len : 0; in cts128_cs3_encrypt()
213 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs3_encrypt()
246 return ctx->hw->cipher(ctx, out, in, len) ? len : 0; in cts128_cs3_decrypt()
255 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs3_decrypt()
267 if (!ctx->hw->cipher(ctx, pt_last.c, in, CTS_BLOCK_SIZE)) in cts128_cs3_decrypt()
306 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs2_encrypt()
[all …]
/openssl/providers/common/
H A Dprovider_util.c28 pc->cipher = NULL; in ossl_prov_cipher_reset()
46 dst->cipher = src->cipher; in ossl_prov_cipher_copy()
112 pc->cipher = pc->alloc_cipher = EVP_CIPHER_fetch(ctx, p->data, propquery); in ossl_prov_cipher_load_from_params()
114 if (pc->cipher == NULL) { in ossl_prov_cipher_load_from_params()
115 const EVP_CIPHER *cipher; in ossl_prov_cipher_load_from_params() local
117 cipher = EVP_get_cipherbyname(p->data); in ossl_prov_cipher_load_from_params()
119 if (cipher != NULL && cipher->origin != EVP_ORIG_GLOBAL) in ossl_prov_cipher_load_from_params()
120 pc->cipher = cipher; in ossl_prov_cipher_load_from_params()
123 if (pc->cipher != NULL) in ossl_prov_cipher_load_from_params()
127 return pc->cipher != NULL; in ossl_prov_cipher_load_from_params()
[all …]

Completed in 67 milliseconds

12345678910>>...13