Home
last modified time | relevance | path

Searched refs:ks1 (Results 1 – 17 of 17) sorted by relevance

/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_default_hw.c18 #define ks1 tks.ks[0] macro
33 des_t4_key_expand(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede2_initkey()
35 memcpy(&tctx->ks3, &tctx->ks1, sizeof(tctx->ks1)); in ossl_cipher_hw_tdes_ede2_initkey()
42 DES_set_key_unchecked(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede2_initkey()
44 memcpy(&tctx->ks3, &tctx->ks1, sizeof(tctx->ks1)); in ossl_cipher_hw_tdes_ede2_initkey()
62 DES_ede3_ofb64_encrypt(in, out, (long)inl, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_ofb()
78 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb()
86 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb()
110 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb1()
126 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb8()
[all …]
H A Dcipher_tdes_hw.c19 #define ks1 tks.ks[0] macro
33 des_t4_key_expand(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede3_initkey()
42 DES_set_key_unchecked(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede3_initkey()
69 DES_ede3_cbc_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_cbc()
76 DES_ede3_cbc_encrypt(in, out, (long)inl, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_cbc()
92 &tctx->ks1, &tctx->ks2, &tctx->ks3, ctx->enc); in ossl_cipher_hw_tdes_ecb()
H A Dcipher_desx_hw.c23 #define ks1 tks.ks[0] macro
33 DES_set_key_unchecked(deskey, &tctx->ks1); in cipher_hw_desx_cbc_initkey()
56 DES_xcbc_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, in cipher_hw_desx_cbc()
64 DES_xcbc_encrypt(in, out, (long)inl, &tctx->ks1, in cipher_hw_desx_cbc()
H A Dcipher_sm4_xts_hw.c18 fn_set_enc_key(key, &xctx->ks1.ks); \
21 fn_set_dec_key(key, &xctx->ks1.ks); \
26 xctx->xts.key1 = &xctx->ks1; \
81 dctx->xts.key1 = &dctx->ks1.ks; in cipher_hw_sm4_xts_copyctx()
H A Dcipher_aes_xts_hw.c25 fn_set_enc_key(key, bits, &xctx->ks1.ks); \
28 fn_set_dec_key(key, bits, &xctx->ks1.ks); \
33 xctx->xts.key1 = &xctx->ks1; \
96 dctx->xts.key1 = &dctx->ks1.ks; in cipher_hw_aes_xts_copyctx()
H A Dcipher_sm4_xts.h27 } ks1, ks2; member
H A Dcipher_aes_xts.h38 } ks1, ks2; /* AES key schedules to use */ member
H A Dcipher_sm4_xts.c107 if (in->xts.key1 != &in->ks1) in sm4_xts_dupctx()
H A Dcipher_aes_xts.c158 if (in->xts.key1 != &in->ks1) in aes_xts_dupctx()
/openssl/crypto/evp/
H A De_des3.c36 # define ks1 ks.ks[0] macro
75 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede_ecb_cipher()
120 &dat->ks1, &dat->ks2, &dat->ks3, in des_ede_cbc_cipher()
129 &dat->ks1, &dat->ks2, &dat->ks3, in des_ede_cbc_cipher()
176 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede3_cfb1_cipher()
237 des_t4_key_expand(&deskey[0], &dat->ks1); in des_ede_init_key()
239 memcpy(&dat->ks3, &dat->ks1, sizeof(dat->ks1)); in des_ede_init_key()
246 DES_set_key_unchecked(&deskey[0], &dat->ks1); in des_ede_init_key()
248 memcpy(&dat->ks3, &dat->ks1, sizeof(dat->ks1)); in des_ede_init_key()
264 des_t4_key_expand(&deskey[0], &dat->ks1); in des_ede3_init_key()
[all …]
H A De_aes.c66 } ks1, ks2; /* AES key schedules to use */ member
300 aesni_set_encrypt_key(key, bits, &xctx->ks1.ks); in aesni_xts_init_key()
304 aesni_set_decrypt_key(key, bits, &xctx->ks1.ks); in aesni_xts_init_key()
312 xctx->xts.key1 = &xctx->ks1; in aesni_xts_init_key()
665 aes_t4_set_encrypt_key(key, bits, &xctx->ks1.ks); in aes_t4_xts_init_key()
695 xctx->xts.key1 = &xctx->ks1; in aes_t4_xts_init_key()
3200 if (xctx->xts.key1 != &xctx->ks1) in aes_xts_ctrl()
3202 xctx_out->xts.key1 = &xctx_out->ks1; in aes_xts_ctrl()
3284 xctx->xts.key1 = &xctx->ks1; in aes_xts_init_key()
3306 xctx->xts.key1 = &xctx->ks1; in aes_xts_init_key()
[all …]
/openssl/crypto/des/
H A Ddes_enc.c155 void DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1, in DES_encrypt3() argument
165 DES_encrypt2((DES_LONG *)data, ks1, DES_ENCRYPT); in DES_encrypt3()
175 void DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1, in DES_decrypt3() argument
187 DES_encrypt2((DES_LONG *)data, ks1, DES_DECRYPT); in DES_decrypt3()
201 long length, DES_key_schedule *ks1, in DES_ede3_cbc_encrypt() argument
228 DES_encrypt3((DES_LONG *)tin, ks1, ks2, ks3); in DES_ede3_cbc_encrypt()
242 DES_encrypt3((DES_LONG *)tin, ks1, ks2, ks3); in DES_ede3_cbc_encrypt()
266 DES_decrypt3((DES_LONG *)tin, ks1, ks2, ks3); in DES_ede3_cbc_encrypt()
286 DES_decrypt3((DES_LONG *)tin, ks1, ks2, ks3); in DES_ede3_cbc_encrypt()
H A Decb3_enc.c19 DES_key_schedule *ks1, DES_key_schedule *ks2, in DES_ecb3_encrypt() argument
32 DES_encrypt3(ll, ks1, ks2, ks3); in DES_ecb3_encrypt()
34 DES_decrypt3(ll, ks1, ks2, ks3); in DES_ecb3_encrypt()
H A Dcfb64ede.c25 long length, DES_key_schedule *ks1, in DES_ede3_cfb64_encrypt() argument
44 DES_encrypt3(ti, ks1, ks2, ks3); in DES_ede3_cfb64_encrypt()
66 DES_encrypt3(ti, ks1, ks2, ks3); in DES_ede3_cfb64_encrypt()
92 int numbits, long length, DES_key_schedule *ks1, in DES_ede3_cfb_encrypt() argument
113 DES_encrypt3(ti, ks1, ks2, ks3); in DES_ede3_cfb_encrypt()
154 DES_encrypt3(ti, ks1, ks2, ks3); in DES_ede3_cfb_encrypt()
/openssl/include/openssl/
H A Ddes.h79 DES_key_schedule *ks1, DES_key_schedule *ks2,
136 void DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1, DES_key_schedule *ks2,
139 void DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1, DES_key_schedule *ks2,
143 long length, DES_key_schedule *ks1,
148 long length, DES_key_schedule *ks1,
153 int numbits, long length, DES_key_schedule *ks1,
158 long length, DES_key_schedule *ks1,
/openssl/doc/man3/
H A DDES_random_key.pod38 DES_key_schedule *ks1, DES_key_schedule *ks2,
65 long length, DES_key_schedule *ks1,
68 long length, DES_key_schedule *ks1,
72 long length, DES_key_schedule *ks1,
76 long length, DES_key_schedule *ks1,
80 long length, DES_key_schedule *ks1,
84 long length, DES_key_schedule *ks1,
158 using ECB mode and I<ks1> as the key.
161 encryption by using I<ks1> for the final encryption.
180 C<C=E(ks3,D(ks2,E(ks1,M)))>. This mode is used by SSL.
[all …]
/openssl/crypto/des/asm/
H A Ddes_enc.m4618 ! parameter 5 1: load ks1/ks2 to in3/in4, add 120 to in4
1282 ! void DES_encrypt3(data, ks1, ks2, ks3)
1327 ! void DES_decrypt3(data, ks1, ks2, ks3)
1358 add in1, 120, in4 ! preload ks1
1440 ! parameter 5 1: load ks1/ks2 to in3/in4, add 120 to in4
1564 ! void DES_ede3_cbc_encrypt(input, output, length, ks1, ks2, ks3, ivec, enc)
1620 call .des_enc ! ks1 in3
1642 ! parameter 5 1: load ks1/ks2 to in3/in4, add 120 to in4
1726 call .des_dec ! ks1 in4

Completed in 46 milliseconds