Home
last modified time | relevance | path

Searched refs:ks2 (Results 1 - 25 of 26) sorted by relevance

12

/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_default_hw.c19 #define ks2 tks.ks[1] macro
34 des_t4_key_expand(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede2_initkey()
43 DES_set_key_unchecked(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede2_initkey()
55 DES_ede3_ofb64_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_ofb()
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()
109 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb1()
125 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb8()
133 &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_cfb8()
[all...]
H A Dcipher_tdes_hw.c20 #define ks2 tks.ks[1] macro
34 des_t4_key_expand(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede3_initkey()
43 DES_set_key_unchecked(&deskey[1], &tctx->ks2); 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.c24 #define ks2 tks.ks[1].ks[0].cblock macro
34 memcpy(&tctx->ks2, &key[8], 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()
H A Dcipher_aes_xts_hw.c31 fn_set_enc_key(key + bytes, bits, &xctx->ks2.ks); \
34 xctx->xts.key2 = &xctx->ks2; \
97 dctx->xts.key2 = &dctx->ks2.ks; in cipher_hw_aes_xts_copyctx()
H A Dcipher_aes_xts.h30 } ks1, ks2; /* AES key schedules to use */ member
H A Dcipher_aes_xts.c145 if (in->xts.key2 != &in->ks2) in aes_xts_dupctx()
/third_party/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_default_hw.c19 #define ks2 tks.ks[1] macro
34 des_t4_key_expand(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede2_initkey()
43 DES_set_key_unchecked(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede2_initkey()
55 DES_ede3_ofb64_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_ofb()
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()
109 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb1()
125 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb8()
133 &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_cfb8()
[all...]
H A Dcipher_tdes_hw.c20 #define ks2 tks.ks[1] macro
34 des_t4_key_expand(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede3_initkey()
43 DES_set_key_unchecked(&deskey[1], &tctx->ks2); 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.c24 #define ks2 tks.ks[1].ks[0].cblock macro
34 memcpy(&tctx->ks2, &key[8], 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()
H A Dcipher_aes_xts_hw.c31 fn_set_enc_key(key + bytes, bits, &xctx->ks2.ks); \
34 xctx->xts.key2 = &xctx->ks2; \
97 dctx->xts.key2 = &dctx->ks2.ks; in cipher_hw_aes_xts_copyctx()
H A Dcipher_aes_xts.h30 } ks1, ks2; /* AES key schedules to use */ member
H A Dcipher_aes_xts.c145 if (in->xts.key2 != &in->ks2) in aes_xts_dupctx()
/third_party/node/deps/openssl/openssl/crypto/evp/
H A De_des3.c37 # define ks2 ks.ks[1] macro
75 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede_ecb_cipher()
86 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede_ofb_cipher()
98 &data(ctx)->ks1, &data(ctx)->ks2, 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()
141 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede_cfb64_cipher()
152 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede_cfb64_cipher()
175 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede3_cfb1_cipher()
190 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede3_cfb8_cipher()
[all...]
H A De_aes.c66 } ks1, ks2; /* AES key schedules to use */ member
296 aesni_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks); in aesni_xts_init_key()
303 xctx->xts.key2 = &xctx->ks2; in aesni_xts_init_key()
651 aes_t4_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks); in aes_t4_xts_init_key()
658 xctx->xts.key2 = &xctx->ks2; in aes_t4_xts_init_key()
3107 if (xctx->xts.key2 != &xctx->ks2) in aes_xts_ctrl()
3109 xctx_out->xts.key2 = &xctx_out->ks2; in aes_xts_ctrl()
3178 HWAES_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks); in aes_xts_init_key()
3200 vpaes_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks); in aes_xts_init_key()
3217 AES_set_encrypt_key(key + bytes, bits, &xctx->ks2 in aes_xts_init_key()
[all...]
/third_party/openssl/crypto/evp/
H A De_des3.c37 # define ks2 ks.ks[1] macro
75 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede_ecb_cipher()
86 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede_ofb_cipher()
98 &data(ctx)->ks1, &data(ctx)->ks2, 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()
141 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede_cfb64_cipher()
152 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede_cfb64_cipher()
175 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede3_cfb1_cipher()
190 &data(ctx)->ks1, &data(ctx)->ks2, in des_ede3_cfb8_cipher()
[all...]
/third_party/node/deps/openssl/openssl/crypto/des/
H A Ddes_enc.c156 DES_key_schedule *ks2, DES_key_schedule *ks3) in DES_encrypt3()
166 DES_encrypt2((DES_LONG *)data, ks2, DES_DECRYPT); in DES_encrypt3()
176 DES_key_schedule *ks2, DES_key_schedule *ks3) in DES_decrypt3()
186 DES_encrypt2((DES_LONG *)data, ks2, DES_ENCRYPT); in DES_decrypt3()
202 DES_key_schedule *ks2, DES_key_schedule *ks3, in DES_ede3_cbc_encrypt()
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()
155 DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3) DES_encrypt3() argument
175 DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3) DES_decrypt3() argument
200 DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, long length, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3, DES_cblock *ivec, int enc) DES_ede3_cbc_encrypt() argument
H A Decb3_enc.c19 DES_key_schedule *ks1, DES_key_schedule *ks2, in DES_ecb3_encrypt()
32 DES_encrypt3(ll, ks1, ks2, ks3); in DES_ecb3_encrypt()
34 DES_decrypt3(ll, ks1, ks2, ks3); in DES_ecb3_encrypt()
18 DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3, int enc) DES_ecb3_encrypt() argument
H A Dcfb64ede.c26 DES_key_schedule *ks2, DES_key_schedule *ks3, in DES_ede3_cfb64_encrypt()
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()
113 DES_encrypt3(ti, ks1, ks2, ks3); in DES_ede3_cfb_encrypt()
154 DES_encrypt3(ti, ks1, ks2, ks3); in DES_ede3_cfb_encrypt()
24 DES_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out, long length, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3, DES_cblock *ivec, int *num, int enc) DES_ede3_cfb64_encrypt() argument
91 DES_ede3_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, long length, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3, DES_cblock *ivec, int enc) DES_ede3_cfb_encrypt() argument
/third_party/openssl/crypto/des/
H A Ddes_enc.c156 DES_key_schedule *ks2, DES_key_schedule *ks3) in DES_encrypt3()
166 DES_encrypt2((DES_LONG *)data, ks2, DES_DECRYPT); in DES_encrypt3()
176 DES_key_schedule *ks2, DES_key_schedule *ks3) in DES_decrypt3()
186 DES_encrypt2((DES_LONG *)data, ks2, DES_ENCRYPT); in DES_decrypt3()
202 DES_key_schedule *ks2, DES_key_schedule *ks3, in DES_ede3_cbc_encrypt()
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()
155 DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3) DES_encrypt3() argument
175 DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3) DES_decrypt3() argument
200 DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, long length, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3, DES_cblock *ivec, int enc) DES_ede3_cbc_encrypt() argument
H A Decb3_enc.c19 DES_key_schedule *ks1, DES_key_schedule *ks2, in DES_ecb3_encrypt()
32 DES_encrypt3(ll, ks1, ks2, ks3); in DES_ecb3_encrypt()
34 DES_decrypt3(ll, ks1, ks2, ks3); in DES_ecb3_encrypt()
18 DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3, int enc) DES_ecb3_encrypt() argument
H A Dcfb64ede.c26 DES_key_schedule *ks2, DES_key_schedule *ks3, in DES_ede3_cfb64_encrypt()
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()
113 DES_encrypt3(ti, ks1, ks2, ks3); in DES_ede3_cfb_encrypt()
154 DES_encrypt3(ti, ks1, ks2, ks3); in DES_ede3_cfb_encrypt()
24 DES_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out, long length, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3, DES_cblock *ivec, int *num, int enc) DES_ede3_cfb64_encrypt() argument
91 DES_ede3_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, long length, DES_key_schedule *ks1, DES_key_schedule *ks2, DES_key_schedule *ks3, DES_cblock *ivec, int enc) DES_ede3_cfb_encrypt() argument
/third_party/node/deps/openssl/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,
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,
/third_party/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,
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,
/third_party/openssl/ohos_lite/include/openssl/
H A Ddes.h71 DES_key_schedule *ks1, DES_key_schedule *ks2,
116 DES_key_schedule *ks2, DES_key_schedule *ks3);
118 DES_key_schedule *ks2, DES_key_schedule *ks3);
121 DES_key_schedule *ks1, DES_key_schedule *ks2,
125 DES_key_schedule *ks2, DES_key_schedule *ks3,
129 DES_key_schedule *ks2, DES_key_schedule *ks3,
133 DES_key_schedule *ks2, DES_key_schedule *ks3,
/third_party/openssl/test/
H A Ddestest.c337 DES_key_schedule ks, ks2, ks3; in test_des_ede_ecb() local
341 DES_set_key_unchecked(&key_data[i + 1], &ks2); in test_des_ede_ecb()
346 DES_ecb3_encrypt(&in, &out, &ks, &ks2, &ks, DES_ENCRYPT); in test_des_ede_ecb()
347 DES_ecb3_encrypt(&out, &outin, &ks, &ks2, &ks, DES_DECRYPT); in test_des_ede_ecb()
412 DES_key_schedule ks, ks2, ks3; in test_ede_cbc() local
420 if (!TEST_int_eq(DES_set_key_checked(&cbc2_key, &ks2), 0)) in test_ede_cbc()
428 DES_ede3_cbc_encrypt(cbc_data, cbc_out, 16L, &ks, &ks2, &ks3, &iv3, in test_ede_cbc()
430 DES_ede3_cbc_encrypt(&cbc_data[16], &cbc_out[16], i - 16, &ks, &ks2, in test_ede_cbc()
436 DES_ede3_cbc_encrypt(cbc_out, cbc_in, i, &ks, &ks2, &ks3, &iv3, in test_ede_cbc()

Completed in 14 milliseconds

12