Home
last modified time | relevance | path

Searched refs:symmetric_key (Results 1 – 25 of 32) sorted by relevance

12

/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_cipher.h241 } symmetric_key; typedef
251 symmetric_key key;
269 symmetric_key key;
285 symmetric_key key;
299 symmetric_key key;
323 symmetric_key key;
344 symmetric_key key;
368 symmetric_key key;
603 const symmetric_key *skey1, const symmetric_key *skey2);
618 const symmetric_key *skey1, const symmetric_key *skey2);
[all …]
A Dtomcrypt_mac.h45 symmetric_key key;
75 symmetric_key key; /* scheduled key for cipher */
155 symmetric_key K;
180 symmetric_key key;
213 symmetric_key key;
294 symmetric_key key; /* scheduled key for cipher */
358 symmetric_key key; /* scheduled key for cipher */
404 symmetric_key K;
443 symmetric_key *uskey,
475 symmetric_key K;
/optee_os/core/lib/libtomcrypt/
A Daes_accel.c53 symmetric_key *skey) in rijndael_setup()
99 const symmetric_key *skey) in aes_ecb_encrypt_nblocks()
112 const symmetric_key *skey) in aes_ecb_decrypt_nblocks()
125 const symmetric_key *skey) in rijndael_ecb_encrypt()
131 const symmetric_key *skey) in rijndael_ecb_decrypt()
138 symmetric_key *skey) in aes_cbc_encrypt_nblocks()
153 symmetric_key *skey) in aes_cbc_decrypt_nblocks()
188 const symmetric_key *skey1, in aes_xts_encrypt_nblocks()
189 const symmetric_key *skey2) in aes_xts_encrypt_nblocks()
208 const symmetric_key *skey1, in aes_xts_decrypt_nblocks()
[all …]
A Daes.c21 symmetric_key skey; in crypto_aes_expand_enc_key()
41 symmetric_key skey; in crypto_aes_enc_block()
/optee_os/core/lib/libtomcrypt/src/modes/xts/
A Dxts_test.c16 … unsigned char *tweak, const symmetric_key *skey1, const symmetric_key *skey2) in _xts_test_accel_xts_encrypt()
22 const symmetric_key *, const symmetric_key *); in _xts_test_accel_xts_encrypt()
33 XMEMCPY(&xts.key1, skey1, sizeof(symmetric_key)); in _xts_test_accel_xts_encrypt()
34 XMEMCPY(&xts.key2, skey2, sizeof(symmetric_key)); in _xts_test_accel_xts_encrypt()
43 … unsigned char *tweak, const symmetric_key *skey1, const symmetric_key *skey2) in _xts_test_accel_xts_decrypt()
49 const symmetric_key *, const symmetric_key *); in _xts_test_accel_xts_decrypt()
60 XMEMCPY(&xts.key1, skey1, sizeof(symmetric_key)); in _xts_test_accel_xts_decrypt()
61 XMEMCPY(&xts.key2, skey2, sizeof(symmetric_key)); in _xts_test_accel_xts_decrypt()
/optee_os/core/lib/libtomcrypt/src/ciphers/
A Drc5.c53 static int _rc5_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in _rc5_setup()
55 int rc5_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in _rc5_setup()
111 int rc5_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in rc5_setup()
128 static int _rc5_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _rc5_ecb_encrypt()
130 int rc5_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _rc5_ecb_encrypt()
168 int rc5_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in rc5_ecb_encrypt()
184 static int _rc5_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _rc5_ecb_decrypt()
186 int rc5_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _rc5_ecb_decrypt()
225 int rc5_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in rc5_ecb_decrypt()
266 symmetric_key key; in rc5_test()
[all …]
A Drc6.c50 static int _rc6_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in _rc6_setup()
52 int rc6_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in _rc6_setup()
106 int rc6_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in rc6_setup()
122 static int _rc6_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _rc6_ecb_encrypt()
124 int rc6_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _rc6_ecb_encrypt()
162 int rc6_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in rc6_ecb_encrypt()
177 static int _rc6_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _rc6_ecb_decrypt()
179 int rc6_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _rc6_ecb_decrypt()
219 int rc6_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in rc6_ecb_decrypt()
276 symmetric_key key; in rc6_test()
[all …]
A Drc2.c70 int rc2_setup_ex(const unsigned char *key, int keylen, int bits, int num_rounds, symmetric_key *ske… in rc2_setup_ex()
133 int rc2_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in rc2_setup()
151 const symmetric_key *skey) in _rc2_ecb_encrypt()
155 const symmetric_key *skey) in _rc2_ecb_encrypt()
208 const symmetric_key *skey) in rc2_ecb_encrypt()
229 const symmetric_key *skey) in _rc2_ecb_decrypt()
233 const symmetric_key *skey) in _rc2_ecb_decrypt()
287 const symmetric_key *skey) in rc2_ecb_decrypt()
353 symmetric_key skey; in rc2_test()
390 void rc2_done(symmetric_key *skey) in rc2_done()
A Dblowfish.c308 symmetric_key *skey) in blowfish_setup()
390 static int _blowfish_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *s… in _blowfish_ecb_encrypt()
392 int blowfish_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _blowfish_ecb_encrypt()
436 int blowfish_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in blowfish_ecb_encrypt()
452 static int _blowfish_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *s… in _blowfish_ecb_decrypt()
454 int blowfish_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _blowfish_ecb_decrypt()
497 int blowfish_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in blowfish_ecb_decrypt()
516 symmetric_key key; in blowfish_test()
568 void blowfish_done(symmetric_key *skey) in blowfish_done()
A Dskipjack.c66 int skipjack_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in skipjack_setup()
143 static int _skipjack_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *s… in _skipjack_ecb_encrypt()
145 int skipjack_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _skipjack_ecb_encrypt()
191 int skipjack_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in skipjack_ecb_encrypt()
207 static int _skipjack_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *s… in _skipjack_ecb_decrypt()
209 int skipjack_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _skipjack_ecb_decrypt()
259 int skipjack_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in skipjack_ecb_decrypt()
287 symmetric_key key; in skipjack_test()
319 void skipjack_done(symmetric_key *skey) in skipjack_done()
A Dnoekeon.c74 int noekeon_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in noekeon_setup()
112 static int _noekeon_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *sk… in _noekeon_ecb_encrypt()
114 int noekeon_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _noekeon_ecb_encrypt()
150 int noekeon_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in noekeon_ecb_encrypt()
166 static int _noekeon_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *sk… in _noekeon_ecb_decrypt()
168 int noekeon_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _noekeon_ecb_decrypt()
203 int noekeon_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in noekeon_ecb_decrypt()
273 symmetric_key key; in noekeon_test()
303 void noekeon_done(symmetric_key *skey) in noekeon_done()
A Dkasumi.c100 static ulong32 FO( ulong32 in, int round_no, const symmetric_key *key) in FO()
124 static ulong32 FL( ulong32 in, int round_no, const symmetric_key *key ) in FL()
140 int kasumi_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in kasumi_ecb_encrypt()
167 int kasumi_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in kasumi_ecb_decrypt()
194 int kasumi_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in kasumi_setup()
236 void kasumi_done(symmetric_key *skey) in kasumi_done()
292 symmetric_key key; in kasumi_test()
A Didea.c76 static int _setup_key(const unsigned char *key, symmetric_key *skey) in _setup_key()
148 int idea_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in idea_setup()
159 int idea_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in idea_ecb_encrypt()
168 int idea_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in idea_ecb_decrypt()
177 void idea_done(symmetric_key *skey) in idea_done()
228 symmetric_key key; in idea_test()
A Dkseed.c201 int kseed_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in kseed_setup()
258 int kseed_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in kseed_ecb_encrypt()
280 int kseed_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in kseed_ecb_decrypt()
298 void kseed_done(symmetric_key *skey) in kseed_done()
342 symmetric_key skey; in kseed_test()
A Danubis.c886 static int _anubis_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in _anubis_setup()
888 int anubis_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in _anubis_setup()
1020 int anubis_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in anubis_setup()
1130 int anubis_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in anubis_ecb_encrypt()
1146 int anubis_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in anubis_ecb_decrypt()
1488 symmetric_key skey; in anubis_test()
1513 void anubis_done(symmetric_key *skey) in anubis_done()
A Dxtea.c33 int xtea_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in xtea_setup()
75 int xtea_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in xtea_ecb_encrypt()
111 int xtea_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in xtea_ecb_decrypt()
205 symmetric_key skey; in xtea_test()
234 void xtea_done(symmetric_key *skey) in xtea_done()
A Dcast5.c408 static int _cast5_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in _cast5_setup()
410 int cast5_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in _cast5_setup()
492 int cast5_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in cast5_setup()
538 static int _cast5_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _cast5_ecb_encrypt()
540 int cast5_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _cast5_ecb_encrypt()
576 int cast5_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in cast5_ecb_encrypt()
591 static int _cast5_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _cast5_ecb_decrypt()
593 int cast5_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _cast5_ecb_decrypt()
629 int cast5_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in cast5_ecb_decrypt()
669 symmetric_key key; in cast5_test()
[all …]
A Dmulti2.c121 int multi2_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in multi2_setup()
152 int multi2_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in multi2_ecb_encrypt()
173 int multi2_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in multi2_ecb_decrypt()
249 symmetric_key skey; in multi2_test()
295 void multi2_done(symmetric_key *skey) in multi2_done()
A Dcamellia.c209 int camellia_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in camellia_setup()
440 int camellia_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in camellia_ecb_encrypt()
534 int camellia_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in camellia_ecb_decrypt()
683 symmetric_key skey; in camellia_test()
709 void camellia_done(symmetric_key *skey) in camellia_done()
A Dserpent.c575 int serpent_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in serpent_setup()
592 int serpent_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in serpent_ecb_encrypt()
601 int serpent_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in serpent_ecb_decrypt()
610 void serpent_done(symmetric_key *skey) in serpent_done()
699 symmetric_key key; in serpent_test()
/optee_os/core/lib/libtomcrypt/src/ciphers/safer/
A Dsafer.c181 int safer_k64_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in safer_k64_setup()
252 const symmetric_key *skey) in _safer_ecb_encrypt()
256 const symmetric_key *skey) in _safer_ecb_encrypt()
295 const symmetric_key *skey) in safer_ecb_encrypt()
306 const symmetric_key *skey) in _safer_ecb_decrypt()
310 const symmetric_key *skey) in _safer_ecb_decrypt()
350 const symmetric_key *skey) in safer_ecb_decrypt()
387 symmetric_key skey; in safer_k64_test()
417 symmetric_key skey; in safer_sk64_test()
447 void safer_done(symmetric_key *skey) in safer_done()
[all …]
A Dsaferp.c147 static void _round(unsigned char *b, int i, const symmetric_key *skey) in _round()
152 static void _iround(unsigned char *b, int i, const symmetric_key *skey) in _iround()
224 int saferp_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in saferp_setup()
342 int saferp_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in saferp_ecb_encrypt()
406 int saferp_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in saferp_ecb_decrypt()
507 symmetric_key skey; in saferp_test()
537 void saferp_done(symmetric_key *skey) in saferp_done()
/optee_os/core/lib/libtomcrypt/src/ciphers/twofish/
A Dtwofish.c292 static ulong32 _g_func(ulong32 x, const symmetric_key *key) in _g_func()
294 static ulong32 g_func(ulong32 x, const symmetric_key *key) in _g_func()
325 static ulong32 g_func(ulong32 x, const symmetric_key *key) in g_func()
347 int twofish_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in _twofish_setup()
455 int twofish_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in twofish_setup()
474 int twofish_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _twofish_ecb_encrypt()
530 int twofish_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in twofish_ecb_encrypt()
548 int twofish_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _twofish_ecb_decrypt()
606 int twofish_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in twofish_ecb_decrypt()
657 symmetric_key key; in twofish_test()
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/aes/
A Daes.c121 int SETUP(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in SETUP()
285 static int _rijndael_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmetric_key *s… in _rijndael_ecb_encrypt()
287 int ECB_ENC(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in _rijndael_ecb_encrypt()
451 int ECB_ENC(const unsigned char *pt, unsigned char *ct, const symmetric_key *skey) in ECB_ENC()
469 static int _rijndael_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmetric_key *s… in _rijndael_ecb_decrypt()
471 int ECB_DEC(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in _rijndael_ecb_decrypt()
636 int ECB_DEC(const unsigned char *ct, unsigned char *pt, const symmetric_key *skey) in ECB_DEC()
687 symmetric_key key; in ECB_TEST()
720 void ECB_DONE(symmetric_key *skey) in ECB_DONE()
/optee_os/core/lib/libtomcrypt/src/hashes/chc/
A Dchc.c88 symmetric_key *key; in chc_init()
134 symmetric_key *key; in chc_compress()

Completed in 42 milliseconds

12