Home
last modified time | relevance | path

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

12345678910>>...15

/freebsd-13.1/crypto/openssl/crypto/evp/
H A Dcmeth_lib.c20 if (cipher != NULL) { in EVP_CIPHER_meth_new()
25 return cipher; in EVP_CIPHER_meth_new()
30 EVP_CIPHER *to = EVP_CIPHER_meth_new(cipher->nid, cipher->block_size, in EVP_CIPHER_meth_dup()
40 OPENSSL_free(cipher); in EVP_CIPHER_meth_free()
45 cipher->iv_len = iv_len; in EVP_CIPHER_meth_set_iv_length()
51 cipher->flags = flags; in EVP_CIPHER_meth_set_flags()
67 cipher->init = init; in EVP_CIPHER_meth_set_init()
108 cipher->ctrl = ctrl; in EVP_CIPHER_meth_set_ctrl()
118 return cipher->init; in EVP_CIPHER_meth_get_init()
130 return cipher->cleanup; in EVP_CIPHER_meth_get_cleanup()
[all …]
H A Devp_enc.c26 if (c->cipher != NULL) { in EVP_CIPHER_CTX_reset()
27 if (c->cipher->cleanup && !c->cipher->cleanup(c)) in EVP_CIPHER_CTX_reset()
55 if (cipher != NULL) in EVP_CipherInit()
79 && (cipher == NULL || cipher->nid == ctx->cipher->nid)) in EVP_CipherInit_ex()
82 if (cipher) { in EVP_CipherInit_ex()
88 if (ctx->cipher in EVP_CipherInit_ex()
117 cipher = c; in EVP_CipherInit_ex()
127 ctx->cipher = cipher; in EVP_CipherInit_ex()
148 } else if (!ctx->cipher) { in EVP_CipherInit_ex()
657 if (!ctx->cipher) { in EVP_CIPHER_CTX_ctrl()
[all …]
H A Devp_lib.c21 if (c->cipher->set_asn1_parameters != NULL) in EVP_CIPHER_param_to_asn1()
56 if (c->cipher->get_asn1_parameters != NULL) in EVP_CIPHER_asn1_to_param()
184 return ctx->cipher->block_size; in EVP_CIPHER_CTX_block_size()
200 return ctx->cipher; in EVP_CIPHER_CTX_cipher()
210 return cipher->flags; in EVP_CIPHER_flags()
240 return cipher->iv_len; in EVP_CIPHER_iv_length()
252 return ctx->cipher->iv_len; in EVP_CIPHER_CTX_iv_length()
287 return cipher->key_len; in EVP_CIPHER_key_length()
295 int EVP_CIPHER_nid(const EVP_CIPHER *cipher) in EVP_CIPHER_nid() argument
297 return cipher->nid; in EVP_CIPHER_nid()
[all …]
H A Dbio_enc.c33 EVP_CIPHER_CTX *cipher; member
73 ctx->cipher = EVP_CIPHER_CTX_new(); in enc_new()
74 if (ctx->cipher == NULL) { in enc_new()
98 EVP_CIPHER_CTX_free(b->cipher); in enc_free()
179 if (!EVP_CipherUpdate(ctx->cipher, in enc_read()
197 if (!EVP_CipherUpdate(ctx->cipher, in enc_read()
266 if (!EVP_CipherUpdate(ctx->cipher, in enc_write()
369 *c_ctx = ctx->cipher; in enc_ctrl()
375 dctx->cipher = EVP_CIPHER_CTX_new(); in enc_ctrl()
376 if (dctx->cipher == NULL) in enc_ctrl()
[all …]
/freebsd-13.1/sys/crypto/rijndael/
H A Drijndael-api-fst.c72 cipher->mode = mode; in rijndael_cipherInit()
89 if (cipher == NULL || in rijndael_blockEncrypt()
100 switch (cipher->mode) { in rijndael_blockEncrypt()
147 memcpy(iv, cipher->IV, 16); in rijndael_blockEncrypt()
205 if (cipher == NULL || in rijndael_padEncrypt()
216 switch (cipher->mode) { in rijndael_padEncrypt()
233 iv = cipher->IV; in rijndael_padEncrypt()
269 if (cipher == NULL || in rijndael_blockDecrypt()
280 switch (cipher->mode) { in rijndael_blockDecrypt()
370 if (cipher == NULL || in rijndael_padDecrypt()
[all …]
/freebsd-13.1/crypto/openssl/doc/man3/
H A DEVP_CIPHER_meth_new.pod21 void EVP_CIPHER_meth_free(EVP_CIPHER *cipher);
26 int EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher,
36 int EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher,
44 int EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher,
80 behaviours in the particular B<cipher>.
92 The cipher mode.
96 This cipher is of variable length.
186 B<cipher>.
192 B<cipher>.
214 (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);
30 char *SSL_CIPHER_get_version(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
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_rc4.pod8 - EVP RC4 stream cipher
20 The RC4 stream cipher for EVP.
26 RC4 stream cipher. This is a variable key length cipher with a default key
31 RC4 stream cipher with 40 bit key length.
38 Authenticated encryption with the RC4 stream cipher with MD5 as HMAC.
49 implementation of the symmetric cipher. See L<EVP_CIPHER_meth_new(3)> for
H A DBIO_f_cipher.pod5 BIO_f_cipher, BIO_set_cipher, BIO_get_cipher_status, BIO_get_cipher_ctx - cipher BIO filter
15 void BIO_set_cipher(BIO *b, const EVP_CIPHER *cipher,
22 BIO_f_cipher() returns the cipher BIO method. This is a filter
24 read from it. It is a BIO wrapper for the cipher routines
33 BIO_set_cipher() sets the cipher of BIO B<b> to B<cipher> using key B<key>
43 BIO cipher context. The retrieved context can be used in conjunction
44 with the standard cipher routines to set it up. This is useful when
59 be achieved by preceding the cipher BIO with a buffering BIO.
63 BIO_f_cipher() returns the cipher BIO method.
/freebsd-13.1/crypto/openssl/crypto/engine/
H A Deng_openssl.c217 EVP_CIPHER *cipher; in test_r4_cipher() local
226 cipher = NULL; in test_r4_cipher()
228 r4_cipher = cipher; in test_r4_cipher()
242 EVP_CIPHER *cipher; in test_r4_40_cipher() local
251 cipher = NULL; in test_r4_40_cipher()
253 r4_40_cipher = cipher; in test_r4_40_cipher()
269 const EVP_CIPHER *cipher; in test_cipher_nids() local
284 if (!cipher) { in openssl_ciphers()
290 *cipher = test_r4_cipher(); in openssl_ciphers()
292 *cipher = test_r4_40_cipher(); in openssl_ciphers()
[all …]
/freebsd-13.1/crypto/openssh/
H A Dcipher.c64 const struct sshcipher *cipher; member
241 if (cc == NULL || cc->cipher == NULL) in cipher_warning_message()
266 if (keylen < cipher->key_len || in cipher_init()
272 cc->cipher = cipher; in cipher_init()
292 type = (*cipher->evptype)(); in cipher_init()
302 if (cipher_authlen(cipher) && in cipher_init()
389 if (len % cc->cipher->block_size) in cipher_crypt()
447 const struct sshcipher *c = cc->cipher; in cipher_get_keyiv_len()
464 const struct sshcipher *c = cc->cipher; in cipher_get_keyiv()
479 if ((cc->cipher->flags & CFLAG_NONE) != 0) in cipher_get_keyiv()
[all …]
/freebsd-13.1/crypto/openssl/apps/
H A Denc.c100 const EVP_CIPHER *cipher = NULL, *c; in enc_main() local
131 cipher = EVP_get_cipherbyname(prog); in enc_main()
261 cipher = c; in enc_main()
274 cipher = NULL; in enc_main()
287 if (cipher && EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) { in enc_main()
292 if (cipher && (EVP_CIPHER_mode(cipher) == EVP_CIPH_XTS_MODE)) { in enc_main()
413 if (cipher != NULL) { in enc_main()
540 EVP_CIPHER_name(cipher)); in enc_main()
628 const EVP_CIPHER *cipher; in show_ciphers() local
634 cipher = EVP_get_cipherbyname(name->name); in show_ciphers()
[all …]
H A Dpkcs8.c68 const EVP_CIPHER *cipher = NULL; in pkcs8_main() local
126 if (!opt_cipher(opt_arg(), &cipher)) in pkcs8_main()
144 if (cipher == NULL) in pkcs8_main()
145 cipher = EVP_aes_256_cbc(); in pkcs8_main()
165 if (cipher == NULL) in pkcs8_main()
166 cipher = EVP_aes_256_cbc(); in pkcs8_main()
194 if ((pbe_nid == -1) && cipher == NULL) in pkcs8_main()
195 cipher = EVP_aes_256_cbc(); in pkcs8_main()
225 if (cipher) { in pkcs8_main()
228 pbe = PKCS5_pbe2_set_scrypt(cipher, NULL, 0, NULL, in pkcs8_main()
[all …]
/freebsd-13.1/lib/libutil/
H A Dlogin_crypt.c41 const char *cipher; in login_setcryptfmt() local
43 cipher = login_getcapstr(lc, "passwd_format", def, NULL); in login_setcryptfmt()
46 "passwd_format = %s\n", cipher); in login_setcryptfmt()
47 if (cipher == NULL) in login_setcryptfmt()
49 if (!crypt_set_format(cipher)) in login_setcryptfmt()
51 return (cipher); in login_setcryptfmt()
/freebsd-13.1/tools/tools/crypto/
H A Dcryptocheck.c156 int cipher; member
277 eta->cipher = cipher->cipher; in build_eta()
304 if (cipher == NULL || cipher->type != T_CIPHER) in build_eta_name()
413 switch (alg->cipher) { in generate_iv()
723 sop.cipher = alg->cipher; in ocf_init_cipher_session()
753 const EVP_CIPHER *cipher; in run_cipher_test() local
855 sop.cipher = alg->cipher; in ocf_init_eta_session()
907 const EVP_CIPHER *cipher; in run_eta_test() local
1118 const EVP_CIPHER *cipher; in run_gmac_test() local
1403 sop.cipher = alg->cipher; in ocf_init_aead_session()
[all …]
/freebsd-13.1/crypto/openssl/doc/man1/
H A Dciphers.pod6 ciphers - SSL cipher display and cipher list tool
102 A cipher list of TLSv1.2 and below ciphersuites to convert to a cipher
111 The cipher list consists of one or more I<cipher strings> separated by colons.
123 Lists of cipher suites can be combined in a single cipher string using the
154 the default cipher list as defined below. Unlike cipher strings,
244 Curve DH (ECDH) cipher suites.
249 cipher suites.
410 =head2 SSL v3.0 cipher suites
431 =head2 TLS v1.0 cipher suites
532 =head2 TLS v1.2 cipher suites
[all …]
/freebsd-13.1/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-13.1/tests/sys/geom/class/eli/
H A Dconf.sh38 for cipher in aes-xts:128 aes-xts:256 \
41 ealgo=${cipher%%:*}
42 keylen=${cipher##*:}
46 ${func} $cipher $aalgo $secsize
62 for cipher in aes-xts:128 aes-xts:256 \
65 ealgo=${cipher%%:*}
66 keylen=${cipher##*:}
68 ${func} $cipher $secsize
/freebsd-13.1/crypto/openssh/regress/
H A Ddhgex.sh15 cipher="$1"; shift
20 echo "Ciphers=$cipher" >> $OBJ/sshd_proxy
22 opts="-oKexAlgorithms=$kex -oCiphers=$cipher"
26 verbose "$tid bits $bits $kex $cipher"
58 check 3072 `${SSH} -Q cipher | grep 128`
59 check 7680 `${SSH} -Q cipher | grep 192`
60 check 8192 `${SSH} -Q cipher | grep 256`
/freebsd-13.1/contrib/wpa/src/tls/
H A Dtlsv1_server.c531 char *cipher; in tlsv1_server_get_cipher() local
535 cipher = "RC4-MD5"; in tlsv1_server_get_cipher()
538 cipher = "RC4-SHA"; in tlsv1_server_get_cipher()
541 cipher = "DES-CBC-SHA"; in tlsv1_server_get_cipher()
544 cipher = "DES-CBC3-SHA"; in tlsv1_server_get_cipher()
553 cipher = "ADH-RC4-MD5"; in tlsv1_server_get_cipher()
556 cipher = "ADH-DES-SHA"; in tlsv1_server_get_cipher()
562 cipher = "AES-128-SHA"; in tlsv1_server_get_cipher()
571 cipher = "AES-256-SHA"; in tlsv1_server_get_cipher()
580 cipher = "AES-128-SHA256"; in tlsv1_server_get_cipher()
[all …]
H A Dtlsv1_client.c607 char *cipher; in tlsv1_client_get_cipher() local
611 cipher = "RC4-MD5"; in tlsv1_client_get_cipher()
614 cipher = "RC4-SHA"; in tlsv1_client_get_cipher()
617 cipher = "DES-CBC-SHA"; in tlsv1_client_get_cipher()
620 cipher = "DES-CBC3-SHA"; in tlsv1_client_get_cipher()
629 cipher = "ADH-RC4-MD5"; in tlsv1_client_get_cipher()
632 cipher = "ADH-DES-SHA"; in tlsv1_client_get_cipher()
638 cipher = "AES-128-SHA"; in tlsv1_client_get_cipher()
647 cipher = "AES-256-SHA"; in tlsv1_client_get_cipher()
656 cipher = "AES-128-SHA256"; in tlsv1_client_get_cipher()
[all …]
/freebsd-13.1/sys/dev/rtwn/
H A Dif_rtwn_tx.c88 uint8_t cipher; in rtwn_get_cipher() local
92 cipher = RTWN_TXDW1_CIPHER_NONE; in rtwn_get_cipher()
96 cipher = RTWN_TXDW1_CIPHER_RC4; in rtwn_get_cipher()
99 cipher = RTWN_TXDW1_CIPHER_AES; in rtwn_get_cipher()
107 return (cipher); in rtwn_get_cipher()
122 u_int cipher; in rtwn_tx_data() local
157 cipher = IEEE80211_CIPHER_NONE; in rtwn_tx_data()
166 cipher = k->wk_cipher->ic_cipher; in rtwn_tx_data()
201 u_int cipher; in rtwn_tx_raw() local
204 cipher = IEEE80211_CIPHER_NONE; in rtwn_tx_raw()
[all …]
/freebsd-13.1/crypto/openssl/engines/
H A De_padlock.c531 if (!cipher) { in padlock_ciphers()
539 *cipher = padlock_aes_128_ecb(); in padlock_ciphers()
542 *cipher = padlock_aes_128_cbc(); in padlock_ciphers()
545 *cipher = padlock_aes_128_cfb(); in padlock_ciphers()
548 *cipher = padlock_aes_128_ofb(); in padlock_ciphers()
551 *cipher = padlock_aes_128_ctr(); in padlock_ciphers()
555 *cipher = padlock_aes_192_ecb(); in padlock_ciphers()
558 *cipher = padlock_aes_192_cbc(); in padlock_ciphers()
561 *cipher = padlock_aes_192_cfb(); in padlock_ciphers()
564 *cipher = padlock_aes_192_ofb(); in padlock_ciphers()
[all …]
/freebsd-13.1/crypto/openssl/crypto/asn1/
H A Dp5_pbev2.c40 X509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,
50 alg_nid = EVP_CIPHER_type(cipher);
67 if (EVP_CIPHER_iv_length(cipher)) {
69 memcpy(iv, aiv, EVP_CIPHER_iv_length(cipher));
70 else if (RAND_bytes(iv, EVP_CIPHER_iv_length(cipher)) <= 0)
79 if (!EVP_CipherInit_ex(ctx, cipher, NULL, NULL, iv, 0))
100 keylen = EVP_CIPHER_key_length(cipher);
143 X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter, in PKCS5_pbe2_set() argument
146 return PKCS5_pbe2_set_iv(cipher, iter, salt, saltlen, NULL, -1); in PKCS5_pbe2_set()

12345678910>>...15