Home
last modified time | relevance | path

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

12345678910>>...22

/freebsd/crypto/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.c35 if (ctx->cipher == NULL || ctx->cipher->prov == NULL) in EVP_CIPHER_CTX_reset()
54 if (ctx->cipher->cleanup && !ctx->cipher->cleanup(ctx)) in EVP_CIPHER_CTX_reset()
108 if (cipher == NULL && ctx->cipher == NULL) { in evp_cipher_init_internal()
123 && (cipher == NULL || cipher->nid == ctx->cipher->nid)) in evp_cipher_init_internal()
141 || (cipher == NULL && ctx->cipher != NULL in evp_cipher_init_internal()
153 if (cipher != NULL && ctx->cipher != NULL) { in evp_cipher_init_internal()
163 if (cipher != NULL && ctx->cipher != NULL) { in evp_cipher_init_internal()
173 cipher = ctx->cipher; in evp_cipher_init_internal()
208 ctx->cipher = cipher; in evp_cipher_init_internal()
342 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()
319 cipher->refcnt = 1; in evp_asym_cipher_new()
321 return cipher; in evp_asym_cipher_new()
435 return cipher; in evp_asym_cipher_from_algorithm()
445 if (cipher == NULL) in EVP_ASYM_CIPHER_free()
447 CRYPTO_DOWN_REF(&cipher->refcnt, &i, cipher->lock); in EVP_ASYM_CIPHER_free()
460 CRYPTO_UP_REF(&cipher->refcnt, &ref, cipher->lock); in EVP_ASYM_CIPHER_up_ref()
491 return evp_is_a(cipher->prov, cipher->name_id, NULL, name); in EVP_ASYM_CIPHER_is_a()
[all …]
H A Devp_lib.c84 const EVP_CIPHER *cipher = c->cipher; in evp_cipher_param_to_asn1_ex() local
175 const EVP_CIPHER *cipher = c->cipher; in evp_cipher_asn1_to_param_ex() local
442 return ctx->cipher; in EVP_CIPHER_CTX_cipher()
450 return ctx->cipher; in EVP_CIPHER_CTX_get0_cipher()
455 EVP_CIPHER *cipher; in EVP_CIPHER_CTX_get1_cipher() local
459 cipher = (EVP_CIPHER *)ctx->cipher; in EVP_CIPHER_CTX_get1_cipher()
462 return cipher; in EVP_CIPHER_CTX_get1_cipher()
667 return cipher->nid; in EVP_CIPHER_get_nid()
677 if (cipher == NULL) in EVP_CIPHER_is_a()
680 return evp_is_a(cipher->prov, cipher->name_id, NULL, name); in EVP_CIPHER_is_a()
[all …]
/freebsd/crypto/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 …]
/freebsd/crypto/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 …]
/freebsd/sys/crypto/rijndael/
H A Drijndael-api-fst.c69 cipher->mode = mode; in rijndael_cipherInit()
86 if (cipher == NULL || in rijndael_blockEncrypt()
97 switch (cipher->mode) { in rijndael_blockEncrypt()
144 memcpy(iv, cipher->IV, 16); in rijndael_blockEncrypt()
202 if (cipher == NULL || in rijndael_padEncrypt()
213 switch (cipher->mode) { in rijndael_padEncrypt()
230 iv = cipher->IV; in rijndael_padEncrypt()
266 if (cipher == NULL || in rijndael_blockDecrypt()
277 switch (cipher->mode) { in rijndael_blockDecrypt()
367 if (cipher == NULL || in rijndael_padDecrypt()
[all …]
/freebsd/crypto/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>.
88 behaviours in the particular B<cipher>.
100 The cipher mode.
104 This cipher is of variable length.
190 B<cipher>.
196 B<cipher>.
218 (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 …]
/freebsd/crypto/openssh/
H A Dcipher.c64 const struct sshcipher *cipher; member
239 if (cc == NULL || cc->cipher == NULL) in cipher_warning_message()
264 if (keylen < cipher->key_len || in cipher_init()
270 cc->cipher = cipher; in cipher_init()
290 type = (*cipher->evptype)(); in cipher_init()
300 if (cipher_authlen(cipher) && in cipher_init()
387 if (len % cc->cipher->block_size) in cipher_crypt()
441 const struct sshcipher *c = cc->cipher; in cipher_get_keyiv()
456 if ((cc->cipher->flags & CFLAG_NONE) != 0) in cipher_get_keyiv()
481 const struct sshcipher *c = cc->cipher; in cipher_set_keyiv()
[all …]
/freebsd/crypto/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 …]
/freebsd/crypto/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()
208 const EVP_CIPHER *cipher, in ossl_cms_EncryptedContent_init() argument
212 ec->cipher = cipher; in ossl_cms_EncryptedContent_init()
[all …]
/freebsd/crypto/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 …]
/freebsd/crypto/openssl/providers/implementations/keymgmt/
H A Dmac_legacy_kmgmt.c61 PROV_CIPHER cipher; member
100 ossl_prov_cipher_reset(&mackey->cipher); in ossl_mac_key_free()
170 || (key1->cipher.cipher == NULL && key2->cipher.cipher != NULL) in mac_match()
171 || (key1->cipher.cipher != NULL && key2->cipher.cipher == NULL)) in mac_match()
177 if (key1->cipher.cipher != NULL) in mac_match()
178 ok = ok && EVP_CIPHER_is_a(key1->cipher.cipher, in mac_match()
179 EVP_CIPHER_get0_name(key2->cipher.cipher)); in mac_match()
256 if (key->cipher.cipher != NULL in key_to_params()
259 EVP_CIPHER_get0_name(key->cipher.cipher))) in key_to_params()
263 if (key->cipher.engine != NULL in key_to_params()
[all …]
/freebsd/sys/crypto/openssl/
H A Dossl.c252 struct ossl_cipher *cipher; in ossl_newsession_cipher() local
255 cipher = ossl_lookup_cipher(csp); in ossl_newsession_cipher()
256 if (cipher == NULL) in ossl_newsession_cipher()
259 s->cipher.cipher = cipher; in ossl_newsession_cipher()
265 if (cipher->set_encrypt_key != NULL) { in ossl_newsession_cipher()
267 8 * csp->csp_cipher_klen, &s->cipher.enc_ctx); in ossl_newsession_cipher()
273 if (cipher->set_decrypt_key != NULL) in ossl_newsession_cipher()
383 return (s->cipher.cipher->process(&s->cipher, crp, csp)); in ossl_process_cipher()
393 error = s->cipher.cipher->process(&s->cipher, crp, csp); in ossl_process_eta()
399 error = s->cipher.cipher->process(&s->cipher, crp, csp); in ossl_process_eta()
[all …]
/freebsd/crypto/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c45 static int KRB5KDF(const EVP_CIPHER *cipher, ENGINE *engine,
52 PROV_CIPHER cipher; member
89 ossl_prov_cipher_reset(&ctx->cipher); in krb5kdf_reset()
109 const EVP_CIPHER *cipher; in krb5kdf_derive() local
115 cipher = ossl_prov_cipher_cipher(&ctx->cipher); in krb5kdf_derive()
116 if (cipher == NULL) { in krb5kdf_derive()
128 engine = ossl_prov_cipher_engine(&ctx->cipher); in krb5kdf_derive()
174 const EVP_CIPHER *cipher; in krb5kdf_get_ctx_params() local
178 cipher = ossl_prov_cipher_cipher(&ctx->cipher); in krb5kdf_get_ctx_params()
179 if (cipher) in krb5kdf_get_ctx_params()
[all …]
/freebsd/lib/libutil/
H A Dlogin_crypt.c38 const char *cipher; in login_setcryptfmt() local
40 cipher = login_getcapstr(lc, "passwd_format", def, NULL); in login_setcryptfmt()
43 "passwd_format = %s\n", cipher); in login_setcryptfmt()
44 if (cipher == NULL) in login_setcryptfmt()
46 if (!crypt_set_format(cipher)) in login_setcryptfmt()
48 return (cipher); in login_setcryptfmt()
/freebsd/crypto/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.
127 Lists of cipher suites can be combined in a single cipher string using the
158 the default cipher list as defined below. Unlike cipher strings,
248 Curve DH (ECDH) cipher suites.
253 cipher suites.
421 =head2 SSL v3.0 cipher suites
442 =head2 TLS v1.0 cipher suites
557 =head2 TLS v1.2 cipher suites
[all …]
/freebsd/contrib/wpa/src/common/
H A Dptksa_cache.c133 const u8 *addr, u32 cipher) in ptksa_cache_get() argument
142 (cipher == WPA_CIPHER_NONE || cipher == e->cipher)) in ptksa_cache_get()
186 wpa_cipher_txt(e->cipher), in ptksa_cache_list()
228 void ptksa_cache_flush(struct ptksa_cache *ptksa, const u8 *addr, u32 cipher) in ptksa_cache_flush() argument
239 (cipher == WPA_CIPHER_NONE || cipher == e->cipher)) { in ptksa_cache_flush()
268 const u8 *addr, u32 cipher, in ptksa_cache_add() argument
275 if (!ptksa || !ptk || !addr || !life_time || cipher == WPA_CIPHER_NONE) in ptksa_cache_add()
279 ptksa_cache_flush(ptksa, addr, cipher); in ptksa_cache_add()
291 entry->cipher = cipher; in ptksa_cache_add()
318 MAC2STR(addr), cipher); in ptksa_cache_add()
H A Dptksa_cache.h24 u32 cipher; member
35 const u8 *addr, u32 cipher);
38 const u8 *addr, u32 cipher,
41 void ptksa_cache_flush(struct ptksa_cache *ptksa, const u8 *addr, u32 cipher);
55 ptksa_cache_get(struct ptksa_cache *ptksa, const u8 *addr, u32 cipher) in ptksa_cache_get() argument
67 ptksa_cache_add(struct ptksa_cache *ptksa, const u8 *addr, u32 cipher, in ptksa_cache_add() argument
74 const u8 *addr, u32 cipher) in ptksa_cache_flush() argument
/freebsd/crypto/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()
/freebsd/tools/tools/crypto/
H A Dcryptocheck.c166 int cipher; member
297 eta->cipher = cipher->cipher; in build_eta()
324 if (cipher == NULL || cipher->type != T_CIPHER) in build_eta_name()
433 switch (alg->cipher) { in generate_iv()
762 sop.cipher = alg->cipher; in ocf_init_cipher_session()
792 const EVP_CIPHER *cipher; in run_cipher_test() local
900 sop.cipher = alg->cipher; in ocf_init_eta_session()
952 const EVP_CIPHER *cipher; in run_eta_test() local
1184 const EVP_CIPHER *cipher; in run_gmac_test() local
1537 sop.cipher = alg->cipher; in ocf_init_aead_session()
[all …]
/freebsd/crypto/openssl/apps/
H A Denc.c121 EVP_CIPHER *cipher = NULL; in enc_main() local
287 cipher = NULL; in enc_main()
309 if (!opt_cipher(ciphername, &cipher)) in enc_main()
364 EVP_CIPHER_get0_name(cipher), in enc_main()
432 if (cipher != NULL) { in enc_main()
567 EVP_CIPHER_get0_name(cipher)); in enc_main()
577 EVP_CIPHER_get0_name(cipher)); in enc_main()
648 EVP_CIPHER_free(cipher); in enc_main()
660 const EVP_CIPHER *cipher; in show_ciphers() local
666 cipher = EVP_get_cipherbyname(name->name); in show_ciphers()
[all …]
/freebsd/tests/sys/geom/class/eli/
H A Dconf.sh40 for cipher in aes-xts:128 aes-xts:256 \
43 ealgo=${cipher%%:*}
44 keylen=${cipher##*:}
48 ${func} $cipher $aalgo $secsize
64 for cipher in aes-xts:128 aes-xts:256 \
67 ealgo=${cipher%%:*}
68 keylen=${cipher##*:}
70 ${func} $cipher $secsize

12345678910>>...22