Home
last modified time | relevance | path

Searched refs:iv (Results 1 – 25 of 210) sorted by relevance

123456789

/openssl/crypto/des/
H A Dcfb64ede.c35 iv = &(*ivec)[0]; in DES_ede3_cfb64_encrypt()
55 iv[n] = c; in DES_ede3_cfb64_encrypt()
76 c = iv[n]; in DES_ede3_cfb64_encrypt()
77 iv[n] = cc; in DES_ede3_cfb64_encrypt()
100 unsigned char *iv; in DES_ede3_cfb_encrypt() local
105 iv = &(*ivec)[0]; in DES_ede3_cfb_encrypt()
106 c2l(iv, v0); in DES_ede3_cfb_encrypt()
107 c2l(iv, v1); in DES_ede3_cfb_encrypt()
191 iv = &(*ivec)[0]; in DES_ede3_cfb_encrypt()
192 l2c(v0, iv); in DES_ede3_cfb_encrypt()
[all …]
H A Dcfb64enc.c32 unsigned char *iv, c, cc; in DES_cfb64_encrypt() local
34 iv = &(*ivec)[0]; in DES_cfb64_encrypt()
38 c2l(iv, v0); in DES_cfb64_encrypt()
40 c2l(iv, v1); in DES_cfb64_encrypt()
45 l2c(v0, iv); in DES_cfb64_encrypt()
47 l2c(v0, iv); in DES_cfb64_encrypt()
52 iv[n] = c; in DES_cfb64_encrypt()
58 c2l(iv, v0); in DES_cfb64_encrypt()
60 c2l(iv, v1); in DES_cfb64_encrypt()
71 c = iv[n]; in DES_cfb64_encrypt()
[all …]
H A Dcfb_enc.c39 unsigned char *iv; in DES_cfb_encrypt() local
54 iv = &(*ivec)[0]; in DES_cfb_encrypt()
55 c2l(iv, v0); in DES_cfb_encrypt()
56 c2l(iv, v1); in DES_cfb_encrypt()
82 l2c(v0, iv); in DES_cfb_encrypt()
83 l2c(v1, iv); in DES_cfb_encrypt()
84 l2c(d0, iv); in DES_cfb_encrypt()
85 l2c(d1, iv); in DES_cfb_encrypt()
152 iv = &(*ivec)[0]; in DES_cfb_encrypt()
153 l2c(v0, iv); in DES_cfb_encrypt()
[all …]
H A Dncbc_enc.c31 unsigned char *iv; in DES_cbc_encrypt() local
33 iv = &(*ivec)[0]; in DES_cbc_encrypt()
36 c2l(iv, tout0); in DES_cbc_encrypt()
37 c2l(iv, tout1); in DES_cbc_encrypt()
64 iv = &(*ivec)[0]; in DES_cbc_encrypt()
65 l2c(tout0, iv); in DES_cbc_encrypt()
66 l2c(tout1, iv); in DES_cbc_encrypt()
69 c2l(iv, xor0); in DES_cbc_encrypt()
70 c2l(iv, xor1); in DES_cbc_encrypt()
100 l2c(xor0, iv); in DES_cbc_encrypt()
[all …]
H A Dxcbc_enc.c31 unsigned char *iv; in DES_xcbc_encrypt() local
40 iv = &(*ivec)[0]; in DES_xcbc_encrypt()
43 c2l(iv, tout0); in DES_xcbc_encrypt()
44 c2l(iv, tout1); in DES_xcbc_encrypt()
70 iv = &(*ivec)[0]; in DES_xcbc_encrypt()
71 l2c(tout0, iv); in DES_xcbc_encrypt()
72 l2c(tout1, iv); in DES_xcbc_encrypt()
74 c2l(iv, xor0); in DES_xcbc_encrypt()
75 c2l(iv, xor1); in DES_xcbc_encrypt()
103 l2c(xor0, iv); in DES_xcbc_encrypt()
[all …]
/openssl/test/
H A Digetest.c164 memcpy(iv, v->iv, sizeof(iv)); in test_ige_vectors()
176 memcpy(iv, v->iv, sizeof(iv)); in test_ige_vectors()
230 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_enc_dec()
235 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_enc_dec()
249 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_enc_chaining()
257 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_enc_chaining()
271 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_dec_chaining()
279 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_dec_chaining()
301 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_garble_forwards()
308 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_garble_forwards()
[all …]
H A Dbftest.c352 unsigned char cbc_in[40], cbc_out[40], iv[8]; in test_bf_cbc() local
362 memcpy(iv, cbc_iv, sizeof(iv)); in test_bf_cbc()
364 &key, iv, BF_ENCRYPT); in test_bf_cbc()
368 memcpy(iv, cbc_iv, 8); in test_bf_cbc()
388 memcpy(iv, cbc_iv, 8); in test_bf_cfb64()
391 &key, iv, &n, BF_ENCRYPT); in test_bf_cfb64()
398 memcpy(iv, cbc_iv, 8); in test_bf_cfb64()
401 &key, iv, &n, BF_DECRYPT); in test_bf_cfb64()
420 memcpy(iv, cbc_iv, 8); in test_bf_ofb64()
425 len - 13, &key, iv, &n); in test_bf_ofb64()
[all …]
/openssl/crypto/bf/
H A Dbf_cfb64.c33 unsigned char *iv, c, cc; in BF_cfb64_encrypt() local
39 n2l(iv, v0); in BF_cfb64_encrypt()
41 n2l(iv, v1); in BF_cfb64_encrypt()
46 l2n(t, iv); in BF_cfb64_encrypt()
48 l2n(t, iv); in BF_cfb64_encrypt()
53 iv[n] = c; in BF_cfb64_encrypt()
59 n2l(iv, v0); in BF_cfb64_encrypt()
66 l2n(t, iv); in BF_cfb64_encrypt()
68 l2n(t, iv); in BF_cfb64_encrypt()
72 c = iv[n]; in BF_cfb64_encrypt()
[all …]
H A Dbf_ofb64.c34 unsigned char *iv; in BF_ofb64_encrypt() local
37 iv = (unsigned char *)ivec; in BF_ofb64_encrypt()
38 n2l(iv, v0); in BF_ofb64_encrypt()
39 n2l(iv, v1); in BF_ofb64_encrypt()
61 iv = (unsigned char *)ivec; in BF_ofb64_encrypt()
62 l2n(v0, iv); in BF_ofb64_encrypt()
63 l2n(v1, iv); in BF_ofb64_encrypt()
/openssl/crypto/rc2/
H A Drc2cfb64.c33 unsigned char *iv, c, cc; in RC2_cfb64_encrypt() local
39 c2l(iv, v0); in RC2_cfb64_encrypt()
41 c2l(iv, v1); in RC2_cfb64_encrypt()
46 l2c(t, iv); in RC2_cfb64_encrypt()
48 l2c(t, iv); in RC2_cfb64_encrypt()
53 iv[n] = c; in RC2_cfb64_encrypt()
59 c2l(iv, v0); in RC2_cfb64_encrypt()
66 l2c(t, iv); in RC2_cfb64_encrypt()
68 l2c(t, iv); in RC2_cfb64_encrypt()
72 c = iv[n]; in RC2_cfb64_encrypt()
[all …]
H A Drc2ofb64.c34 unsigned char *iv; in RC2_ofb64_encrypt() local
37 iv = (unsigned char *)ivec; in RC2_ofb64_encrypt()
38 c2l(iv, v0); in RC2_ofb64_encrypt()
39 c2l(iv, v1); in RC2_ofb64_encrypt()
61 iv = (unsigned char *)ivec; in RC2_ofb64_encrypt()
62 l2c(v0, iv); in RC2_ofb64_encrypt()
63 l2c(v1, iv); in RC2_ofb64_encrypt()
/openssl/crypto/rc5/
H A Drc5cfb64.c33 unsigned char *iv, c, cc; in RC5_32_cfb64_encrypt() local
39 c2l(iv, v0); in RC5_32_cfb64_encrypt()
41 c2l(iv, v1); in RC5_32_cfb64_encrypt()
46 l2c(t, iv); in RC5_32_cfb64_encrypt()
48 l2c(t, iv); in RC5_32_cfb64_encrypt()
53 iv[n] = c; in RC5_32_cfb64_encrypt()
59 c2l(iv, v0); in RC5_32_cfb64_encrypt()
66 l2c(t, iv); in RC5_32_cfb64_encrypt()
68 l2c(t, iv); in RC5_32_cfb64_encrypt()
72 c = iv[n]; in RC5_32_cfb64_encrypt()
[all …]
H A Drc5ofb64.c34 unsigned char *iv; in RC5_32_ofb64_encrypt() local
37 iv = (unsigned char *)ivec; in RC5_32_ofb64_encrypt()
38 c2l(iv, v0); in RC5_32_ofb64_encrypt()
39 c2l(iv, v1); in RC5_32_ofb64_encrypt()
61 iv = (unsigned char *)ivec; in RC5_32_ofb64_encrypt()
62 l2c(v0, iv); in RC5_32_ofb64_encrypt()
63 l2c(v1, iv); in RC5_32_ofb64_encrypt()
/openssl/crypto/cast/
H A Dc_cfb64.c35 iv = ivec; in CAST_cfb64_encrypt()
39 n2l(iv, v0); in CAST_cfb64_encrypt()
44 iv = ivec; in CAST_cfb64_encrypt()
46 l2n(t, iv); in CAST_cfb64_encrypt()
48 l2n(t, iv); in CAST_cfb64_encrypt()
49 iv = ivec; in CAST_cfb64_encrypt()
53 iv[n] = c; in CAST_cfb64_encrypt()
64 iv = ivec; in CAST_cfb64_encrypt()
69 iv = ivec; in CAST_cfb64_encrypt()
72 c = iv[n]; in CAST_cfb64_encrypt()
[all …]
H A Dc_ofb64.c34 unsigned char *iv; in CAST_ofb64_encrypt() local
37 iv = ivec; in CAST_ofb64_encrypt()
38 n2l(iv, v0); in CAST_ofb64_encrypt()
39 n2l(iv, v1); in CAST_ofb64_encrypt()
61 iv = ivec; in CAST_ofb64_encrypt()
62 l2n(v0, iv); in CAST_ofb64_encrypt()
63 l2n(v1, iv); in CAST_ofb64_encrypt()
/openssl/crypto/idea/
H A Di_cfb64.c34 unsigned char *iv, c, cc; in IDEA_cfb64_encrypt() local
45 n2l(iv, v0); in IDEA_cfb64_encrypt()
47 n2l(iv, v1); in IDEA_cfb64_encrypt()
52 l2n(t, iv); in IDEA_cfb64_encrypt()
54 l2n(t, iv); in IDEA_cfb64_encrypt()
59 iv[n] = c; in IDEA_cfb64_encrypt()
65 n2l(iv, v0); in IDEA_cfb64_encrypt()
72 l2n(t, iv); in IDEA_cfb64_encrypt()
74 l2n(t, iv); in IDEA_cfb64_encrypt()
78 c = iv[n]; in IDEA_cfb64_encrypt()
[all …]
H A Di_cbc.c21 long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, in IDEA_cbc_encrypt() argument
30 n2l(iv, tout0); in IDEA_cbc_encrypt()
31 n2l(iv, tout1); in IDEA_cbc_encrypt()
32 iv -= 8; in IDEA_cbc_encrypt()
58 l2n(tout0, iv); in IDEA_cbc_encrypt()
59 l2n(tout1, iv); in IDEA_cbc_encrypt()
61 n2l(iv, xor0); in IDEA_cbc_encrypt()
62 n2l(iv, xor1); in IDEA_cbc_encrypt()
63 iv -= 8; in IDEA_cbc_encrypt()
89 l2n(xor0, iv); in IDEA_cbc_encrypt()
[all …]
H A Di_ofb64.c35 unsigned char *iv; in IDEA_ofb64_encrypt() local
43 iv = (unsigned char *)ivec; in IDEA_ofb64_encrypt()
44 n2l(iv, v0); in IDEA_ofb64_encrypt()
45 n2l(iv, v1); in IDEA_ofb64_encrypt()
67 iv = (unsigned char *)ivec; in IDEA_ofb64_encrypt()
68 l2n(v0, iv); in IDEA_ofb64_encrypt()
69 l2n(v1, iv); in IDEA_ofb64_encrypt()
/openssl/crypto/modes/
H A Dcbc128.c29 const unsigned char *iv = ivec; in CRYPTO_cbc128_encrypt() local
41 iv = out; in CRYPTO_cbc128_encrypt()
52 iv = out; in CRYPTO_cbc128_encrypt()
63 out[n] = iv[n]; in CRYPTO_cbc128_encrypt()
65 iv = out; in CRYPTO_cbc128_encrypt()
72 if (ivec != iv) in CRYPTO_cbc128_encrypt()
73 memcpy(ivec, iv, 16); in CRYPTO_cbc128_encrypt()
99 iv = in; in CRYPTO_cbc128_decrypt()
112 iv = in; in CRYPTO_cbc128_decrypt()
118 if (ivec != iv) in CRYPTO_cbc128_decrypt()
[all …]
/openssl/crypto/evp/
H A De_aria.c238 iv = gctx->iv; in aria_gcm_init_key()
239 if (iv) { in aria_gcm_init_key()
249 memcpy(gctx->iv, iv, gctx->ivlen); in aria_gcm_init_key()
265 gctx->iv = c->iv; in aria_gcm_ctrl()
280 if (gctx->iv != c->iv) in aria_gcm_ctrl()
382 if (gctx->iv == c->iv) in aria_gcm_ctrl()
383 gctx_out->iv = out->iv; in aria_gcm_ctrl()
387 memcpy(gctx_out->iv, gctx->iv, gctx->ivlen); in aria_gcm_ctrl()
502 if (gctx->iv != ctx->iv) in aria_gcm_cleanup()
530 if (iv) { in aria_ccm_init_key()
[all …]
H A De_aes.c246 iv = gctx->iv; in aesni_gcm_init_key()
398 iv = octx->iv; in aesni_ocb_init_key()
610 iv = gctx->iv; in aes_t4_gcm_init_key()
779 iv = octx->iv; in aes_t4_ocb_init_key()
1450 gctx->iv = c->iv; in s390x_aes_gcm_ctrl()
1628 iv = gctx->iv; in s390x_aes_gcm_init_key()
1767 if (gctx->iv != c->iv) in s390x_aes_gcm_cleanup()
2645 if (gctx->iv != c->iv) in aes_gcm_cleanup()
2658 gctx->iv = c->iv; in aes_gcm_ctrl()
2851 iv = gctx->iv; in aes_gcm_init_key()
[all …]
H A De_des3.c114 ctx->iv); in des_ede_cbc_cipher()
121 (DES_cblock *)ctx->iv, in des_ede_cbc_cipher()
130 (DES_cblock *)ctx->iv, in des_ede_cbc_cipher()
328 memcpy(ctx->iv, wrap_iv, 8); in des_ede3_unwrap()
342 des_ede_cbc_cipher(ctx, iv, in + inl - 8, 8); in des_ede3_unwrap()
346 BUF_reverse(ctx->iv, iv, 8); in des_ede3_unwrap()
355 OPENSSL_cleanse(iv, 8); in des_ede3_unwrap()
356 OPENSSL_cleanse(ctx->iv, 8); in des_ede3_unwrap()
377 if (RAND_bytes(ctx->iv, 8) <= 0) in des_ede3_wrap()
379 memcpy(out, ctx->iv, 8); in des_ede3_wrap()
[all …]
H A De_des.c52 const unsigned char *iv, int enc);
77 (DES_cblock *)ctx->iv, &num); in des_ofb_cipher()
87 (DES_cblock *)ctx->iv, &num); in des_ofb_cipher()
105 (DES_cblock *)ctx->iv, in des_cbc_cipher()
114 (DES_cblock *)ctx->iv, in des_cbc_cipher()
126 (DES_cblock *)ctx->iv, &num, in des_cfb64_cipher()
137 (DES_cblock *)ctx->iv, &num, in des_cfb64_cipher()
162 (DES_cblock *)ctx->iv, in des_cfb1_cipher()
184 (DES_cblock *)ctx->iv, in des_cfb8_cipher()
193 (DES_cblock *)ctx->iv, in des_cfb8_cipher()
[all …]
/openssl/crypto/aes/
H A Daes_ige.c90 aes_block_t iv; in AES_ige_encrypt() local
105 iv = tmp2; in AES_ige_encrypt()
143 aes_block_t iv; in AES_ige_encrypt() local
159 iv = tmp2; in AES_ige_encrypt()
197 const unsigned char *iv; in AES_bi_ige_encrypt() local
211 iv = ivec; in AES_bi_ige_encrypt()
219 iv = out; in AES_bi_ige_encrypt()
254 iv = out; in AES_bi_ige_encrypt()
276 iv = tmp3; in AES_bi_ige_encrypt()
282 iv = ivec; in AES_bi_ige_encrypt()
[all …]
/openssl/providers/implementations/ciphers/
H A Dciphercommon_gcm.c60 if (iv != NULL) { in gcm_init()
61 if (ivlen == 0 || ivlen > sizeof(ctx->iv)) { in gcm_init()
66 memcpy(ctx->iv, iv, ivlen); in gcm_init()
120 memcpy(out, ctx->iv + ctx->ivlen - olen, olen); in getivgen()
125 ctr64_inc(ctx->iv + ctx->ivlen - 8); in getivgen()
137 memcpy(ctx->iv + ctx->ivlen - inl, in, inl); in setivinv()
138 if (!ctx->hw->setiv(ctx, ctx->iv, ctx->ivlen)) in setivinv()
282 if (sz == 0 || sz > sizeof(ctx->iv)) { in ossl_gcm_set_ctx_params()
440 if (!hw->setiv(ctx, ctx->iv, ctx->ivlen)) in gcm_cipher_internal()
508 memcpy(ctx->iv, iv, ctx->ivlen); in gcm_tls_iv_set_fixed()
[all …]

Completed in 68 milliseconds

123456789