/openssl/providers/implementations/ciphers/ |
H A D | cipher_tdes_default_hw.c | 18 #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 D | cipher_tdes_hw.c | 19 #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 D | cipher_desx_hw.c | 23 #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 D | cipher_sm4_xts_hw.c | 18 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 D | cipher_aes_xts_hw.c | 25 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 D | cipher_sm4_xts.h | 27 } ks1, ks2; member
|
H A D | cipher_aes_xts.h | 38 } ks1, ks2; /* AES key schedules to use */ member
|
H A D | cipher_sm4_xts.c | 107 if (in->xts.key1 != &in->ks1) in sm4_xts_dupctx()
|
H A D | cipher_aes_xts.c | 158 if (in->xts.key1 != &in->ks1) in aes_xts_dupctx()
|
/openssl/crypto/evp/ |
H A D | e_des3.c | 36 # 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 D | e_aes.c | 66 } 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 D | des_enc.c | 155 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 D | ecb3_enc.c | 19 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 D | cfb64ede.c | 25 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 D | des.h | 79 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 D | DES_random_key.pod | 38 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 D | des_enc.m4 | 618 ! 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
|