Searched refs:iv (Results 51 - 75 of 281) sorted by relevance

1234567891011>>

/freebsd-11-stable/crypto/openssh/
H A Dcipher-aesctr.h32 void aesctr_ivsetup(aesctr_ctx *x,const u8 *iv);
H A Dcipher-aes.c50 ssh_rijndael_init(EVP_CIPHER_CTX *ctx, const u_char *key, const u_char *iv, argument
65 if (iv != NULL)
66 memcpy(c->r_iv, iv, RIJNDAEL_BLOCKSIZE);
130 ssh_rijndael_iv(EVP_CIPHER_CTX *evp, int doset, u_char * iv, u_int len) argument
137 memcpy(c->r_iv, iv, len);
139 memcpy(iv, c->r_iv, len);
/freebsd-11-stable/crypto/openssl/crypto/des/
H A Denc_writ.c81 DES_key_schedule *sched, DES_cblock *iv)
121 sched, iv);
149 iv, DES_ENCRYPT);
152 iv, DES_ENCRYPT);
80 DES_enc_write(int fd, const void *_buf, int len, DES_key_schedule *sched, DES_cblock *iv) argument
H A Dcbc_cksm.c69 const unsigned char *iv = &(*ivec)[0]; local
71 c2l(iv, tout0);
72 c2l(iv, tout1);
H A Ddes_enc.c295 unsigned char *iv; local
299 iv = &(*ivec)[0];
302 c2l(iv, tout0);
303 c2l(iv, tout1);
333 iv = &(*ivec)[0];
334 l2c(tout0, iv);
335 l2c(tout1, iv);
339 c2l(iv, xor0);
340 c2l(iv, xor1);
381 iv
[all...]
H A Dxcbc_enc.c138 unsigned char *iv; local
147 iv = &(*ivec)[0];
150 c2l(iv, tout0);
151 c2l(iv, tout1);
177 iv = &(*ivec)[0];
178 l2c(tout0, iv);
179 l2c(tout1, iv);
181 c2l(iv, xor0);
182 c2l(iv, xor1);
209 iv
[all...]
/freebsd-11-stable/crypto/openssl/crypto/evp/
H A De_aes.c84 int iv_set; /* Set if an iv is set */
86 unsigned char *iv; /* Temporary IV store */ member in struct:__anon4573
103 const unsigned char iv[16]);
112 int iv_set; /* Set if an iv is set */
147 const AES_KEY *key2, const unsigned char iv[16]);
150 const AES_KEY *key2, const unsigned char iv[16]);
160 const unsigned char iv[16]);
163 const unsigned char iv[16]);
227 const unsigned char iv[16]);
233 const unsigned char iv[1
269 aesni_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
342 aesni_gcm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
378 aesni_xts_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
416 aesni_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
549 aes_t4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
648 aes_t4_gcm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
698 aes_t4_xts_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
766 aes_t4_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
923 aes_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
1283 aes_gcm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
1646 aes_xts_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
1820 aes_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
1937 unsigned char *iv; member in struct:__anon4579
1940 aes_wrap_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
[all...]
H A Dp_seal.c70 unsigned char **ek, int *ekl, unsigned char *iv,
86 && RAND_bytes(iv, EVP_CIPHER_CTX_iv_length(ctx)) <= 0)
89 if (!EVP_EncryptInit_ex(ctx, NULL, NULL, key, iv))
69 EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, unsigned char **ek, int *ekl, unsigned char *iv, EVP_PKEY **pubk, int npubk) argument
H A De_rc2.c70 const unsigned char *iv, int enc);
133 const unsigned char *iv, int enc)
175 unsigned char iv[EVP_MAX_IV_LENGTH]; local
179 OPENSSL_assert(l <= sizeof(iv));
180 i = ASN1_TYPE_get_int_octetstring(type, &num, iv, l);
186 if (i > 0 && !EVP_CipherInit_ex(c, NULL, NULL, NULL, iv, -1))
132 rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
H A Dp5_crpt.c80 unsigned char key[EVP_MAX_KEY_LENGTH], iv[EVP_MAX_IV_LENGTH]; local
138 memcpy(iv, md_tmp + (16 - EVP_CIPHER_iv_length(cipher)),
140 if (!EVP_CipherInit_ex(cctx, cipher, NULL, key, iv, en_de))
144 OPENSSL_cleanse(iv, EVP_MAX_IV_LENGTH);
H A Devp_test.c135 const unsigned char *iv, int in,
151 hexdump(stdout, "IV", iv, in);
178 if (!EVP_EncryptInit_ex(&ctx, NULL, NULL, key, iv)) {
204 if (!EVP_EncryptInit_ex(&ctx, NULL, NULL, key, iv)) {
220 if (!EVP_EncryptInit_ex(&ctx, c, NULL, key, in ? iv : NULL)) {
225 } else if (!EVP_EncryptInit_ex(&ctx, c, NULL, key, iv)) {
287 if (!EVP_DecryptInit_ex(&ctx, NULL, NULL, key, iv)) {
320 if (!EVP_DecryptInit_ex(&ctx, NULL, NULL, key, iv)) {
336 if (!EVP_DecryptInit_ex(&ctx, c, NULL, key, in ? iv : NULL)) {
341 } else if (!EVP_DecryptInit_ex(&ctx, c, NULL, key, iv)) {
134 test1(const EVP_CIPHER *c, const unsigned char *key, int kn, const unsigned char *iv, int in, const unsigned char *plaintext, int pn, const unsigned char *ciphertext, int cn, const unsigned char *aad, int an, const unsigned char *tag, int tn, int encdec) argument
379 test_cipher(const char *cipher, const unsigned char *key, int kn, const unsigned char *iv, int in, const unsigned char *plaintext, int pn, const unsigned char *ciphertext, int cn, const unsigned char *aad, int an, const unsigned char *tag, int tn, int encdec) argument
503 unsigned char *iv, *key, *plaintext, *ciphertext, *aad, *tag; local
[all...]
H A Devp_enc.c96 const unsigned char *key, const unsigned char *iv, int enc)
100 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc);
105 const unsigned char *iv, int enc)
179 return FIPS_cipherinit(ctx, cipher, key, iv, enc);
212 return FIPS_cipherinit(ctx, cipher, key, iv, enc);
241 (int)sizeof(ctx->iv));
242 if (iv)
243 memcpy(ctx->oiv, iv, EVP_CIPHER_CTX_iv_length(ctx));
244 memcpy(ctx->iv, ctx->oiv, EVP_CIPHER_CTX_iv_length(ctx));
250 if (iv)
95 EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, int enc) argument
103 EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv, int enc) argument
295 EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) argument
301 EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) argument
308 EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) argument
314 EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) argument
[all...]
/freebsd-11-stable/crypto/openssl/engines/ccgost/
H A Dgost_crypt.c23 const unsigned char *iv, int enc);
25 const unsigned char *iv, int enc);
185 const unsigned char *iv, int enc,
196 if (iv)
197 memcpy(ctx->oiv, iv, EVP_CIPHER_CTX_iv_length(ctx));
198 memcpy(ctx->iv, ctx->oiv, EVP_CIPHER_CTX_iv_length(ctx));
203 const unsigned char *iv, int enc)
211 if (iv)
212 memcpy(ctx->oiv, iv, EVP_CIPHER_CTX_iv_length(ctx));
213 memcpy(ctx->iv, ct
183 gost_cipher_init_param(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc, int paramNID, int mode) argument
202 gost_cipher_init_cpa(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
218 gost_cipher_init(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) argument
229 gost_crypt_mesh(void *ctx, unsigned char *iv, unsigned char *buf) argument
240 gost_cnt_next(void *ctx, unsigned char *iv, unsigned char *buf) argument
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/
H A Dip_fw_table_value.c646 ipfw_import_table_value_v1(ipfw_table_value *iv) argument
651 v.tag = iv->tag;
652 v.pipe = iv->pipe;
653 v.divert = iv->divert;
654 v.skipto = iv->skipto;
655 v.netgraph = iv->netgraph;
656 v.fib = iv->fib;
657 v.nat = iv->nat;
658 v.dscp = iv->dscp;
659 v.nh4 = iv
674 ipfw_table_value iv; local
[all...]
/freebsd-11-stable/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_cbcdes.c40 unsigned char iv[8] = {0}; variable
73 co.iv = iv;
H A Dh_gcm.c41 unsigned char iv[16] = { 0 }; variable
84 co.iv = iv;
115 co.iv = iv;
H A Dh_camellia.c44 unsigned char iv[16] = {0}; variable
78 co.iv = iv;
/freebsd-11-stable/sys/crypto/aesni/
H A Daesni.h82 const uint8_t iv[__min_size(AES_BLOCK_LEN)]);
84 size_t len, uint8_t *buf, const uint8_t iv[__min_size(AES_BLOCK_LEN)]);
91 const uint8_t iv[__min_size(AES_BLOCK_LEN)]);
96 const uint8_t iv[__min_size(AES_BLOCK_LEN)]);
100 const uint8_t iv[__min_size(AES_BLOCK_LEN)]);
/freebsd-11-stable/crypto/openssl/crypto/cast/
H A Dc_enc.c127 long length, const CAST_KEY *ks, unsigned char *iv,
136 n2l(iv, tout0);
137 n2l(iv, tout1);
138 iv -= 8;
164 l2n(tout0, iv);
165 l2n(tout1, iv);
167 n2l(iv, xor0);
168 n2l(iv, xor1);
169 iv -= 8;
195 l2n(xor0, iv);
126 CAST_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, const CAST_KEY *ks, unsigned char *iv, int enc) argument
[all...]
/freebsd-11-stable/crypto/openssl/crypto/rc2/
H A Drc2_cbc.c63 RC2_KEY *ks, unsigned char *iv, int encrypt)
71 c2l(iv, tout0);
72 c2l(iv, tout1);
73 iv -= 8;
99 l2c(tout0, iv);
100 l2c(tout1, iv);
102 c2l(iv, xor0);
103 c2l(iv, xor1);
104 iv -= 8;
130 l2c(xor0, iv);
62 RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, RC2_KEY *ks, unsigned char *iv, int encrypt) argument
[all...]
/freebsd-11-stable/crypto/openssl/crypto/rc5/
H A Drc5_enc.c64 long length, RC5_32_KEY *ks, unsigned char *iv,
73 c2l(iv, tout0);
74 c2l(iv, tout1);
75 iv -= 8;
101 l2c(tout0, iv);
102 l2c(tout1, iv);
104 c2l(iv, xor0);
105 c2l(iv, xor1);
106 iv -= 8;
132 l2c(xor0, iv);
63 RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, RC5_32_KEY *ks, unsigned char *iv, int encrypt) argument
[all...]
/freebsd-11-stable/tests/sys/opencrypto/
H A Dcryptotest.py95 iv = data['IV'].decode('hex')
102 if len(iv) != 12:
112 rct, rtag = c.encrypt(pt, iv, aad)
121 args = (ct, iv, aad, tag)
148 iv = data['IV'].decode('hex')
156 r = curfun(c, pt, iv)
177 iv = struct.pack('QQ', int(data['DataUnitSeqNumber']), 0)
188 r = curfun(c, pt, iv)
216 iv = data['IV'].decode('hex')
224 r = curfun(c, pt, iv)
[all...]
/freebsd-11-stable/tools/tools/crypto/
H A Dcryptocheck.c314 char *iv; local
316 iv = alloc_buffer(len);
320 iv[len - 4] = 0;
321 iv[len - 3] = 0;
322 iv[len - 2] = 0;
323 iv[len - 1] = 0;
330 iv[len - 8] = 0;
331 iv[len - 7] = 0;
332 iv[len - 6] = 0;
333 iv[le
440 openssl_cipher(struct alg *alg, const EVP_CIPHER *cipher, const char *key, const char *iv, const char *input, char *output, size_t size, int enc) argument
471 ocf_cipher(struct alg *alg, const char *key, size_t key_len, const char *iv, const char *input, char *output, size_t size, int enc, int *cridp) argument
521 char *iv, *key; local
597 ocf_authenc(struct alg *alg, const char *cipher_key, size_t cipher_key_len, const char *iv, size_t iv_len, const char *auth_key, size_t auth_key_len, const char *aad, size_t aad_len, const char *input, char *output, size_t size, char *digest, int enc, int *cridp) argument
678 char *iv, *auth_key, *cipher_key; local
793 openssl_gcm_encrypt(struct alg *alg, const EVP_CIPHER *cipher, const char *key, const char *iv, const char *aad, size_t aad_len, const char *input, char *output, size_t size, char *tag) argument
836 ocf_gcm(struct alg *alg, const char *key, size_t key_len, const char *iv, size_t iv_len, const char *aad, size_t aad_len, const char *input, char *output, size_t size, char *tag, int enc, int *cridp) argument
889 openssl_gcm_decrypt(struct alg *alg, const EVP_CIPHER *cipher, const char *key, const char *iv, const char *aad, size_t aad_len, const char *input, char *output, size_t size, char *tag) argument
937 char *iv, *key; local
[all...]
/freebsd-11-stable/contrib/gcc/
H A Dtree-ssa-loop-ivopts.c102 struct iv struct
104 tree base; /* Initial value of the iv. */
106 tree step; /* Step of the iv (constant only). */
117 struct iv *iv; /* Induction variable description. */ member in struct:version_info
140 the final value of the iv. For iv elimination,
149 struct iv *iv; /* The induction variable it is based on. */ member in struct:iv_use
152 bitmap related_cands; /* The set of "related" iv candidate
182 struct iv *iv; /* The value of the candidate. NULL for member in struct:iv_cand
367 dump_iv(FILE *file, struct iv *iv) argument
476 struct iv *iv = cand->iv; local
892 struct iv *iv = XCNEW (struct iv); local
911 set_iv(struct ivopts_data *data, tree iv, tree base, tree step) argument
949 affine_iv iv; local
1002 struct iv *iv, *incr_iv; local
1032 find_givs_in_stmt_scev(struct ivopts_data *data, tree stmt, affine_iv *iv) argument
1063 affine_iv iv; local
1137 record_use(struct ivopts_data *data, tree *use_p, struct iv *iv, tree stmt, enum use_type use_type) argument
1193 struct iv *iv; local
1343 struct iv *iv; local
1626 struct iv *iv; local
2145 add_old_iv_candidates(struct ivopts_data *data, struct iv *iv) argument
2177 struct iv *iv; local
2191 add_iv_value_candidates(struct ivopts_data *data, struct iv *iv, struct iv_use *use) argument
4063 iv_value(struct iv *iv, tree niter) argument
4091 iv_period(struct iv *iv) argument
[all...]
/freebsd-11-stable/tools/tools/net80211/wesside/wesside/
H A Daircrack-ptw-lib.h61 uint8_t iv[PTW_IVBYTES]; member in struct:__anon13713

Completed in 247 milliseconds

1234567891011>>