Home
last modified time | relevance | path

Searched refs:encrypt (Results 1 – 25 of 99) sorted by relevance

1234

/openbsd-src/lib/libfido2/src/
H A Daes256.c11 fido_blob_t *out, int encrypt) in aes256_cbc() argument
37 if (EVP_CipherInit(ctx, cipher, key->ptr, iv, encrypt) == 0 || in aes256_cbc()
55 fido_blob_t *out, int encrypt) in aes256_cbc_proto1() argument
61 return aes256_cbc(key, iv, in, out, encrypt); in aes256_cbc_proto1()
66 fido_blob_t *out, int encrypt) in aes256_cbc_fips() argument
82 if (encrypt) { in aes256_cbc_fips()
95 if (aes256_cbc(&key, iv, &cin, &cout, encrypt) < 0) in aes256_cbc_fips()
97 if (encrypt) { in aes256_cbc_fips()
116 int encrypt) in aes256_gcm() argument
135 out->len = encrypt ? in->len + 16 : in->len - 16; in aes256_gcm()
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/DB_File/
H A Ddbinfo85 my ($magic, $version, $endian, $encrypt) ;
92 $encrypt = "Not Supported";
99 $encrypt = "Not Supported";
125 { $encrypt = $info[6] ? "Enabled" : "Disabled" }
127 { $encrypt = "Not Supported" }
136 Encryption: $encrypt
/openbsd-src/sys/crypto/
H A Decb3_enc.c55 int encrypt) in des_ecb3_encrypt() argument
68 des_encrypt2(ll, ks1, encrypt); in des_ecb3_encrypt()
69 des_encrypt2(ll, ks2, !encrypt); in des_ecb3_encrypt()
70 des_encrypt2(ll, ks3, encrypt); in des_ecb3_encrypt()
H A Decb_enc.c54 des_encrypt2(u_int32_t *data, des_key_schedule ks, int encrypt) in des_encrypt2() argument
82 if (encrypt) { in des_encrypt2()
/openbsd-src/lib/libcrypto/evp/
H A De_camellia.c95 …encrypt(in, out, EVP_MAXCHUNK, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in camellia_128_cbc_cipher()
102 …llia_cbc_encrypt(in, out, inl, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in camellia_128_cbc_cipher()
116 …ypt(in, out, chunk, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); in camellia_128_cfb128_cipher()
140 Camellia_ecb_encrypt(in + i, out + i, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->encrypt); in camellia_128_ecb_cipher()
253 …encrypt(in, out, EVP_MAXCHUNK, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in camellia_192_cbc_cipher()
260 …llia_cbc_encrypt(in, out, inl, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in camellia_192_cbc_cipher()
274 …ypt(in, out, chunk, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); in camellia_192_cfb128_cipher()
298 Camellia_ecb_encrypt(in + i, out + i, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->encrypt); in camellia_192_ecb_cipher()
411 …encrypt(in, out, EVP_MAXCHUNK, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in camellia_256_cbc_cipher()
418 …llia_cbc_encrypt(in, out, inl, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in camellia_256_cbc_cipher()
[all …]
H A De_des.c111 ctx->cipher_data, ctx->encrypt); in des_ecb_cipher()
143 (DES_cblock *)ctx->iv, ctx->encrypt); in des_cbc_cipher()
150 (DES_cblock *)ctx->iv, ctx->encrypt); in des_cbc_cipher()
162 (DES_cblock *)ctx->iv, &ctx->num, ctx->encrypt); in des_cfb64_cipher()
169 (DES_cblock *)ctx->iv, &ctx->num, ctx->encrypt); in des_cfb64_cipher()
190 (DES_cblock *)ctx->iv, ctx->encrypt); in des_cfb1_cipher()
213 ctx->cipher_data, (DES_cblock *)ctx->iv, ctx->encrypt); in des_cfb8_cipher()
220 (DES_cblock *)ctx->iv, ctx->encrypt); in des_cfb8_cipher()
H A De_des3.c142 &data(ctx)->ks1, &data(ctx)->ks2, &data(ctx)->ks3, ctx->encrypt); in des_ede_ecb_cipher()
178 (DES_cblock *)ctx->iv, ctx->encrypt); in des_ede_cbc_cipher()
186 (DES_cblock *)ctx->iv, ctx->encrypt); in des_ede_cbc_cipher()
199 (DES_cblock *)ctx->iv, &ctx->num, ctx->encrypt); in des_ede_cfb64_cipher()
207 (DES_cblock *)ctx->iv, &ctx->num, ctx->encrypt); in des_ede_cfb64_cipher()
227 (DES_cblock *)ctx->iv, ctx->encrypt); in des_ede3_cfb1_cipher()
244 (DES_cblock *)ctx->iv, ctx->encrypt); in des_ede3_cfb8_cipher()
252 (DES_cblock *)ctx->iv, ctx->encrypt); in des_ede3_cfb8_cipher()
H A De_cast.c92 …_cbc_encrypt(in, out, (long)chunk, &((EVP_CAST_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in cast5_cbc_cipher()
99 …ST_cbc_encrypt(in, out, (long)inl, &((EVP_CAST_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in cast5_cbc_cipher()
113 …t(in, out, (long)chunk, &((EVP_CAST_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); in cast5_cfb64_cipher()
137 CAST_ecb_encrypt(in + i, out + i, &((EVP_CAST_KEY *)ctx->cipher_data)->ks, ctx->encrypt); in cast5_ecb_cipher()
H A De_bf.c92 …BF_cbc_encrypt(in, out, (long)chunk, &((EVP_BF_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in bf_cbc_cipher()
99 BF_cbc_encrypt(in, out, (long)inl, &((EVP_BF_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in bf_cbc_cipher()
113 …ypt(in, out, (long)chunk, &((EVP_BF_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); in bf_cfb64_cipher()
137 BF_ecb_encrypt(in + i, out + i, &((EVP_BF_KEY *)ctx->cipher_data)->ks, ctx->encrypt); in bf_ecb_cipher()
H A De_aes.c243 ctx->encrypt); in aesni_cbc_cipher()
257 aesni_ecb_encrypt(in, out, len, ctx->cipher_data, ctx->encrypt); in aesni_ecb_cipher()
439 ctx->encrypt); in aes_cbc_cipher()
440 else if (ctx->encrypt) in aes_cbc_cipher()
485 ctx->encrypt, dat->block); in aes_cfb_cipher()
496 ctx->encrypt, dat->block); in aes_cfb8_cipher()
508 &ctx->num, ctx->encrypt, dat->block); in aes_cfb1_cipher()
514 ctx->iv, &ctx->num, ctx->encrypt, dat->block); in aes_cfb1_cipher()
521 ctx->iv, &ctx->num, ctx->encrypt, dat->block); in aes_cfb1_cipher()
1350 if (arg <= 0 || arg > 16 || c->encrypt) in aes_gcm_ctrl()
[all...]
H A De_sm4.c81 …_cbc_encrypt(in, out, EVP_MAXCHUNK, &((EVP_SM4_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in sm4_cbc_cipher()
88 sm4_cbc_encrypt(in, out, inl, &((EVP_SM4_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in sm4_cbc_cipher()
102 …_encrypt(in, out, chunk, &((EVP_SM4_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); in sm4_cfb128_cipher()
126 sm4_ecb_encrypt(in + i, out + i, &((EVP_SM4_KEY *)ctx->cipher_data)->ks, ctx->encrypt); in sm4_ecb_cipher()
H A Dpmeth_fn.c190 if (ctx == NULL || ctx->pmeth == NULL || ctx->pmeth->encrypt == NULL) { in EVP_PKEY_encrypt_init()
205 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) { in EVP_PKEY_encrypt()
214 return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen); in EVP_PKEY_encrypt()
274 ctx->pmeth->encrypt || ctx->pmeth->decrypt) || in EVP_PKEY_derive_set_peer()
H A De_idea.c129 …_cbc_encrypt(in, out, (long)chunk, &((EVP_IDEA_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in idea_cbc_cipher()
136 …ea_cbc_encrypt(in, out, (long)inl, &((EVP_IDEA_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in idea_cbc_cipher()
168 …t(in, out, (long)chunk, &((EVP_IDEA_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); in idea_cfb64_cipher()
H A De_xcbc_d.c128 &data(ctx)->outw, ctx->encrypt); in desx_cbc_cipher()
136 &data(ctx)->outw, ctx->encrypt); in desx_cbc_cipher()
H A De_rc2.c94 …2_cbc_encrypt(in, out, (long)chunk, &((EVP_RC2_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in rc2_cbc_cipher()
101 …RC2_cbc_encrypt(in, out, (long)inl, &((EVP_RC2_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in rc2_cbc_cipher()
115 …pt(in, out, (long)chunk, &((EVP_RC2_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); in rc2_cfb64_cipher()
139 RC2_ecb_encrypt(in + i, out + i, &((EVP_RC2_KEY *)ctx->cipher_data)->ks, ctx->encrypt); in rc2_ecb_cipher()
H A De_chacha20poly1305.c392 const unsigned char *iv, int encrypt) in chacha20_poly1305_init() argument
496 if (!ctx->encrypt || out == NULL) in chacha20_poly1305_cipher()
505 if (ctx->encrypt && out != NULL) in chacha20_poly1305_cipher()
516 if (ctx->encrypt) { in chacha20_poly1305_cipher()
570 if (ctx->encrypt) in chacha20_poly1305_ctrl()
581 if (!ctx->encrypt) in chacha20_poly1305_ctrl()
/openbsd-src/distrib/special/encrypt/
H A DMakefile3 PROG= encrypt
4 SRCS= encrypt.c
6 .PATH: ${.CURDIR}/../../../usr.bin/encrypt
/openbsd-src/usr.sbin/npppd/npppd/
H A Dmppe.c314 int pktloss, encrypt, flushed, m, n; in mppe_input() local
320 encrypt = 0; in mppe_input()
329 encrypt = (coher_cnt & 0x1000)? 1 : 0; in mppe_input()
335 (encrypt)? "[encrypt]" : "")); in mppe_input()
337 if (encrypt == 0) { in mppe_input()
473 int encrypt, flushed; in mppe_pkt_output() local
480 encrypt = 1; in mppe_pkt_output()
504 (encrypt)? "[encrypt]" : "")); in mppe_pkt_output()
509 if (encrypt) in mppe_pkt_output()
/openbsd-src/lib/libcrypto/rc2/
H A Drc2_ecb.c73 int encrypt) in RC2_ecb_encrypt() argument
81 if (encrypt) in RC2_ecb_encrypt()
H A Drc2cfb64.c70 int *num, int encrypt) in RC2_cfb64_encrypt() argument
79 if (encrypt) { in RC2_cfb64_encrypt()
/openbsd-src/usr.bin/ssh/
H A Dcipher.c56 int encrypt; member
256 cc->encrypt = do_encrypt; in cipher_init()
344 len, aadlen, authlen, cc->encrypt); in cipher_crypt()
370 if (!cc->encrypt && in cipher_crypt()
387 /* compute tag (on encrypt) or verify tag (on decrypt) */ in cipher_crypt()
389 return cc->encrypt ? in cipher_crypt()
391 if (cc->encrypt && in cipher_crypt()
H A DPROTOCOL.chacha20poly130541 to encrypt the 4 byte packet length field. The second instance,
43 (Authenticated Encryption with Associated Data) that is used to encrypt
49 the MAC. By using an independently-keyed cipher instance to encrypt the
80 To send a packet, first encode the 4 byte length and encrypt it using
88 used to encrypt more than 2^70 bytes under the same {key, nonce}. The
/openbsd-src/lib/libcrypto/bf/
H A Dblowfish.c430 const BF_KEY *schedule, unsigned char *ivec, int encrypt) in BF_cbc_encrypt() argument
437 if (encrypt) { in BF_cbc_encrypt()
513 const BF_KEY *schedule, unsigned char *ivec, int *num, int encrypt) in BF_cfb64_encrypt() argument
522 if (encrypt) { in BF_cfb64_encrypt()
571 const BF_KEY *key, int encrypt) in BF_ecb_encrypt() argument
579 if (encrypt) in BF_ecb_encrypt()
/openbsd-src/sys/uvm/
H A Duvm_swap_encrypt.c200 swap_key_prepare(struct swap_key *key, int encrypt) in swap_key_prepare() argument
207 if (kcur == key && (encrypt || !swap_ctxt.enc_only)) in swap_key_prepare()
210 if (encrypt) in swap_key_prepare()
/openbsd-src/regress/lib/libcrypto/ige/
H A Digetest.c85 const int encrypt; member
136 if(v->encrypt == AES_ENCRYPT) in run_test_vectors()
141 AES_ige_encrypt(v->in, buf, v->length, &key, iv, v->encrypt); in run_test_vectors()
158 AES_ige_encrypt(buf, buf, v->length, &key, iv, v->encrypt); in run_test_vectors()

1234