Home
last modified time | relevance | path

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

12345678910>>...13

/freebsd-12.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.c25 if (c->cipher != NULL) { in EVP_CIPHER_CTX_reset()
26 if (c->cipher->cleanup && !c->cipher->cleanup(c)) in EVP_CIPHER_CTX_reset()
54 if (cipher != NULL) in EVP_CipherInit()
78 && (cipher == NULL || cipher->nid == ctx->cipher->nid)) in EVP_CipherInit_ex()
81 if (cipher) { in EVP_CipherInit_ex()
87 if (ctx->cipher) { in EVP_CipherInit_ex()
116 cipher = c; in EVP_CipherInit_ex()
126 ctx->cipher = cipher; in EVP_CipherInit_ex()
147 } else if (!ctx->cipher) { in EVP_CipherInit_ex()
615 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 …]
H A Dp5_crpt.c25 ASN1_TYPE *param, const EVP_CIPHER *cipher, in PKCS5_PBE_keyivgen() argument
89 OPENSSL_assert(EVP_CIPHER_key_length(cipher) <= (int)sizeof(md_tmp)); in PKCS5_PBE_keyivgen()
90 memcpy(key, md_tmp, EVP_CIPHER_key_length(cipher)); in PKCS5_PBE_keyivgen()
91 OPENSSL_assert(EVP_CIPHER_iv_length(cipher) <= 16); in PKCS5_PBE_keyivgen()
92 memcpy(iv, md_tmp + (16 - EVP_CIPHER_iv_length(cipher)), in PKCS5_PBE_keyivgen()
93 EVP_CIPHER_iv_length(cipher)); in PKCS5_PBE_keyivgen()
94 if (!EVP_CipherInit_ex(cctx, cipher, NULL, key, iv, en_de)) in PKCS5_PBE_keyivgen()
/freebsd-12.1/sys/crypto/rijndael/
H A Drijndael-api-fst.c74 cipher->mode = mode; in rijndael_cipherInit()
91 if (cipher == NULL || in rijndael_blockEncrypt()
102 switch (cipher->mode) { in rijndael_blockEncrypt()
149 memcpy(iv, cipher->IV, 16); in rijndael_blockEncrypt()
206 if (cipher == NULL || in rijndael_padEncrypt()
217 switch (cipher->mode) { in rijndael_padEncrypt()
234 iv = cipher->IV; in rijndael_padEncrypt()
269 if (cipher == NULL || in rijndael_blockDecrypt()
280 switch (cipher->mode) { in rijndael_blockDecrypt()
369 if (cipher == NULL || in rijndael_padDecrypt()
[all …]
/freebsd-12.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-12.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-12.1/crypto/openssh/
H A Dcipher.c61 const struct sshcipher *cipher; member
229 if (cc == NULL || cc->cipher == NULL) in cipher_warning_message()
254 if (keylen < cipher->key_len || in cipher_init()
260 cc->cipher = cipher; in cipher_init()
279 type = (*cipher->evptype)(); in cipher_init()
289 if (cipher_authlen(cipher) && in cipher_init()
377 if (len % cc->cipher->block_size) in cipher_crypt()
435 const struct sshcipher *c = cc->cipher; in cipher_get_keyiv_len()
452 const struct sshcipher *c = cc->cipher; in cipher_get_keyiv()
467 if ((cc->cipher->flags & CFLAG_NONE) != 0) in cipher_get_keyiv()
[all …]
/freebsd-12.1/crypto/openssl/apps/
H A Denc.c99 const EVP_CIPHER *cipher = NULL, *c; in enc_main() local
130 cipher = EVP_get_cipherbyname(prog); in enc_main()
260 cipher = c; in enc_main()
273 cipher = NULL; in enc_main()
286 if (cipher && EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) { in enc_main()
291 if (cipher && (EVP_CIPHER_mode(cipher) == EVP_CIPH_XTS_MODE)) { in enc_main()
412 if (cipher != NULL) { in enc_main()
539 EVP_CIPHER_name(cipher)); in enc_main()
627 const EVP_CIPHER *cipher; in show_ciphers() local
633 cipher = EVP_get_cipherbyname(name->name); in show_ciphers()
[all …]
/freebsd-12.1/tools/tools/crypto/
H A Dcryptocheck.c135 int cipher; member
237 authenc.cipher = cipher->cipher; in build_authenc()
248 struct alg *cipher, *hmac; in build_authenc_name() local
257 if (cipher == NULL) in build_authenc_name()
350 switch (alg->cipher) { in generate_iv()
639 sop.cipher = alg->cipher; in ocf_cipher()
674 const EVP_CIPHER *cipher; in run_blkcipher_test() local
764 sop.cipher = alg->cipher; in ocf_authenc()
1004 sop.cipher = alg->cipher; in ocf_gcm()
1243 sop.cipher = alg->cipher; in ocf_ccm()
[all …]
/freebsd-12.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-12.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-12.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-12.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"
56 check 3072 `${SSH} -Q cipher | grep 128`
57 check 7680 `${SSH} -Q cipher | grep 192`
58 check 8192 `${SSH} -Q cipher | grep 256`
/freebsd-12.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.c583 char *cipher; in tlsv1_client_get_cipher() local
587 cipher = "RC4-MD5"; in tlsv1_client_get_cipher()
590 cipher = "RC4-SHA"; in tlsv1_client_get_cipher()
593 cipher = "DES-CBC-SHA"; in tlsv1_client_get_cipher()
596 cipher = "DES-CBC3-SHA"; in tlsv1_client_get_cipher()
605 cipher = "ADH-RC4-MD5"; in tlsv1_client_get_cipher()
608 cipher = "ADH-DES-SHA"; in tlsv1_client_get_cipher()
614 cipher = "AES-128-SHA"; in tlsv1_client_get_cipher()
623 cipher = "AES-256-SHA"; in tlsv1_client_get_cipher()
632 cipher = "AES-128-SHA256"; in tlsv1_client_get_cipher()
[all …]
/freebsd-12.1/sys/dev/rtwn/
H A Dif_rtwn_tx.c89 uint8_t cipher; in rtwn_get_cipher() local
93 cipher = RTWN_TXDW1_CIPHER_NONE; in rtwn_get_cipher()
97 cipher = RTWN_TXDW1_CIPHER_RC4; in rtwn_get_cipher()
100 cipher = RTWN_TXDW1_CIPHER_AES; in rtwn_get_cipher()
108 return (cipher); in rtwn_get_cipher()
123 u_int cipher; in rtwn_tx_data() local
158 cipher = IEEE80211_CIPHER_NONE; in rtwn_tx_data()
167 cipher = k->wk_cipher->ic_cipher; in rtwn_tx_data()
202 u_int cipher; in rtwn_tx_raw() local
205 cipher = IEEE80211_CIPHER_NONE; in rtwn_tx_raw()
[all …]
/freebsd-12.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-12.1/contrib/apr-util/crypto/
H A Dapr_crypto_openssl.c56 const EVP_CIPHER * cipher; member
382 key->cipher = EVP_des_ede3_cbc(); in crypto_passphrase()
385 key->cipher = EVP_des_ede3_ecb(); in crypto_passphrase()
392 key->cipher = EVP_aes_128_cbc(); in crypto_passphrase()
395 key->cipher = EVP_aes_128_ecb(); in crypto_passphrase()
402 key->cipher = EVP_aes_192_cbc(); in crypto_passphrase()
405 key->cipher = EVP_aes_192_ecb(); in crypto_passphrase()
412 key->cipher = EVP_aes_256_cbc(); in crypto_passphrase()
415 key->cipher = EVP_aes_256_ecb(); in crypto_passphrase()
427 key->keyLen = EVP_CIPHER_key_length(key->cipher); in crypto_passphrase()
[all …]
/freebsd-12.1/sys/opencrypto/
H A Dskipjack.c129 skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key_tables) in skipjack_forwards() argument
188 cipher [0] = wh1; cipher [1] = wl1; in skipjack_forwards()
189 cipher [2] = wh2; cipher [3] = wl2; in skipjack_forwards()
190 cipher [4] = wh3; cipher [5] = wl3; in skipjack_forwards()
191 cipher [6] = wh4; cipher [7] = wl4; in skipjack_forwards()
196 skipjack_backwards (u_int8_t *cipher, u_int8_t *plain, u_int8_t **key_tables) in skipjack_backwards() argument
199 u_int8_t wh1 = cipher[0]; u_int8_t wl1 = cipher[1]; in skipjack_backwards()
200 u_int8_t wh2 = cipher[2]; u_int8_t wl2 = cipher[3]; in skipjack_backwards()
201 u_int8_t wh3 = cipher[4]; u_int8_t wl3 = cipher[5]; in skipjack_backwards()
202 u_int8_t wh4 = cipher[6]; u_int8_t wl4 = cipher[7]; in skipjack_backwards()
/freebsd-12.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>>...13