Home
last modified time | relevance | path

Searched refs:ks3 (Results 1 – 11 of 11) sorted by relevance

/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_default_hw.c20 #define ks3 tks.ks[2] macro
35 memcpy(&tctx->ks3, &tctx->ks1, sizeof(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()
56 &tctx->ks3, (DES_cblock *)ctx->iv, &num); in ossl_cipher_hw_tdes_ofb()
63 &tctx->ks3, (DES_cblock *)ctx->iv, &num); 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()
134 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb8()
H A Dcipher_tdes_hw.c21 #define ks3 tks.ks[2] macro
35 des_t4_key_expand(&deskey[2], &tctx->ks3); in ossl_cipher_hw_tdes_ede3_initkey()
44 DES_set_key_unchecked(&deskey[2], &tctx->ks3); in ossl_cipher_hw_tdes_ede3_initkey()
70 &tctx->ks3, (DES_cblock *)ctx->iv, ctx->enc); in ossl_cipher_hw_tdes_cbc()
77 &tctx->ks3, (DES_cblock *)ctx->iv, ctx->enc); 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.c25 #define ks3 tks.ks[2].ks[0].cblock macro
35 memcpy(&tctx->ks3, &key[16], 8); in cipher_hw_desx_cbc_initkey()
57 (DES_cblock *)ctx->iv, &tctx->ks2, &tctx->ks3, in cipher_hw_desx_cbc()
65 (DES_cblock *)ctx->iv, &tctx->ks2, &tctx->ks3, in cipher_hw_desx_cbc()
/openssl/crypto/evp/
H A De_des3.c38 # define ks3 ks.ks[2] macro
87 &data(ctx)->ks3, in des_ede_ofb_cipher()
99 &data(ctx)->ks3, in des_ede_ofb_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()
177 &data(ctx)->ks3, (DES_cblock *)ctx->iv, in des_ede3_cfb1_cipher()
192 &data(ctx)->ks3, (DES_cblock *)ctx->iv, in des_ede3_cfb8_cipher()
239 memcpy(&dat->ks3, &dat->ks1, sizeof(dat->ks1)); in des_ede_init_key()
248 memcpy(&dat->ks3, &dat->ks1, sizeof(dat->ks1)); in des_ede_init_key()
266 des_t4_key_expand(&deskey[2], &dat->ks3); in des_ede3_init_key()
[all …]
/openssl/crypto/des/
H A Ddes_enc.c156 DES_key_schedule *ks2, DES_key_schedule *ks3) in DES_encrypt3() argument
167 DES_encrypt2((DES_LONG *)data, ks3, DES_ENCRYPT); in DES_encrypt3()
176 DES_key_schedule *ks2, DES_key_schedule *ks3) in DES_decrypt3() argument
185 DES_encrypt2((DES_LONG *)data, ks3, DES_DECRYPT); in DES_decrypt3()
202 DES_key_schedule *ks2, DES_key_schedule *ks3, 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.c20 DES_key_schedule *ks3, int enc) 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.c26 DES_key_schedule *ks2, DES_key_schedule *ks3, 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()
93 DES_key_schedule *ks2, DES_key_schedule *ks3, 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.h80 DES_key_schedule *ks3, int enc);
137 DES_key_schedule *ks3);
140 DES_key_schedule *ks3);
144 DES_key_schedule *ks2, DES_key_schedule *ks3,
149 DES_key_schedule *ks2, DES_key_schedule *ks3,
154 DES_key_schedule *ks2, DES_key_schedule *ks3,
159 DES_key_schedule *ks2, DES_key_schedule *ks3,
/openssl/test/
H A Ddestest.c347 DES_key_schedule ks, ks2, ks3; in test_des_ede_ecb() local
352 DES_set_key_unchecked(&key_data[i + 2], &ks3); in test_des_ede_ecb()
422 DES_key_schedule ks, ks2, ks3; in test_ede_cbc() local
432 if (!TEST_int_eq(DES_set_key_checked(&cbc3_key, &ks3), 0)) in test_ede_cbc()
438 DES_ede3_cbc_encrypt(cbc_data, cbc_out, 16L, &ks, &ks2, &ks3, &iv3, in test_ede_cbc()
441 &ks3, &iv3, DES_ENCRYPT); in test_ede_cbc()
446 DES_ede3_cbc_encrypt(cbc_out, cbc_in, i, &ks, &ks2, &ks3, &iv3, in test_ede_cbc()
/openssl/doc/man3/
H A DDES_random_key.pod39 DES_key_schedule *ks3, int enc);
77 DES_key_schedule *ks2, DES_key_schedule *ks3,
81 DES_key_schedule *ks2, DES_key_schedule *ks3,
85 DES_key_schedule *ks2, DES_key_schedule *ks3,
155 then encrypting with I<ks3>. This routine greatly reduces the chances
157 I<ks2> and I<ks3> are the same, it is equivalent to just encryption
180 C<C=E(ks3,D(ks2,E(ks1,M)))>. This mode is used by SSL.
/openssl/crypto/des/asm/
H A Ddes_enc.m4125 ! parameter 9 1 for load ks3 and ks2 to in4 and in3
1282 ! void DES_encrypt3(data, ks1, ks2, ks3)
1303 mov in3, in2 ! save ks3
1308 ! parameter 9 1 for load ks3 and ks2 to in4 and in3
1313 mov in2, in3 ! preload ks3
1327 ! void DES_decrypt3(data, ks1, ks2, ks3)
1345 add in3, 120, in4 ! ks3
1353 ! parameter 9 1 for load ks3 and ks2 to in4 and in3
1626 call .des_enc ! ks3 in3 compares in2 to 8
1719 ! parameter 9 1 for load ks3 and ks2 to in4 and in3
[all …]

Completed in 17 milliseconds