Lines Matching refs:skey
70 int rc2_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in rc2_setup() argument
72 unsigned *xkey = skey->rc2.xkey; in rc2_setup()
78 LTC_ARGCHK(skey != NULL); in rc2_setup()
133 symmetric_key *skey) in _rc2_ecb_encrypt() argument
137 symmetric_key *skey) in _rc2_ecb_encrypt()
145 LTC_ARGCHK(skey != NULL); in _rc2_ecb_encrypt()
147 xkey = skey->rc2.xkey; in _rc2_ecb_encrypt()
190 symmetric_key *skey) in rc2_ecb_encrypt() argument
192 int err = _rc2_ecb_encrypt(pt, ct, skey); in rc2_ecb_encrypt()
211 symmetric_key *skey) in _rc2_ecb_decrypt() argument
215 symmetric_key *skey) in _rc2_ecb_decrypt()
224 LTC_ARGCHK(skey != NULL); in _rc2_ecb_decrypt()
226 xkey = skey->rc2.xkey; in _rc2_ecb_decrypt()
269 symmetric_key *skey) in rc2_ecb_decrypt() argument
271 int err = _rc2_ecb_decrypt(ct, pt, skey); in rc2_ecb_decrypt()
306 symmetric_key skey; in rc2_test()
311 if ((err = rc2_setup(tests[x].key, tests[x].keylen, 0, &skey)) != CRYPT_OK) { in rc2_test()
315 rc2_ecb_encrypt(tests[x].pt, tmp[0], &skey); in rc2_test()
316 rc2_ecb_decrypt(tmp[0], tmp[1], &skey); in rc2_test()
324 for (y = 0; y < 1000; y++) rc2_ecb_encrypt(tmp[0], tmp[0], &skey); in rc2_test()
325 for (y = 0; y < 1000; y++) rc2_ecb_decrypt(tmp[0], tmp[0], &skey); in rc2_test()
335 void rc2_done(symmetric_key *skey) in rc2_done() argument