• Home
  • Raw
  • Download

Lines Matching refs:skey

141 int kasumi_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey)  in kasumi_ecb_encrypt()  argument
148 LTC_ARGCHK(skey != NULL); in kasumi_ecb_encrypt()
154 temp = FL(left, n, skey); in kasumi_ecb_encrypt()
155 temp = FO(temp, n++, skey); in kasumi_ecb_encrypt()
157 temp = FO(right, n, skey); in kasumi_ecb_encrypt()
158 temp = FL(temp, n++, skey); in kasumi_ecb_encrypt()
168 int kasumi_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey) in kasumi_ecb_decrypt() argument
175 LTC_ARGCHK(skey != NULL); in kasumi_ecb_decrypt()
181 temp = FO(right, n, skey); in kasumi_ecb_decrypt()
182 temp = FL(temp, n--, skey); in kasumi_ecb_decrypt()
184 temp = FL(left, n, skey); in kasumi_ecb_decrypt()
185 temp = FO(temp, n--, skey); in kasumi_ecb_decrypt()
195 int kasumi_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in kasumi_setup() argument
202 LTC_ARGCHK(skey != NULL); in kasumi_setup()
224 skey->kasumi.KLi1[n] = ROL16(ukey[n],1); in kasumi_setup()
225 skey->kasumi.KLi2[n] = Kprime[(n+2)&0x7]; in kasumi_setup()
226 skey->kasumi.KOi1[n] = ROL16(ukey[(n+1)&0x7],5); in kasumi_setup()
227 skey->kasumi.KOi2[n] = ROL16(ukey[(n+5)&0x7],8); in kasumi_setup()
228 skey->kasumi.KOi3[n] = ROL16(ukey[(n+6)&0x7],13); in kasumi_setup()
229 skey->kasumi.KIi1[n] = Kprime[(n+4)&0x7]; in kasumi_setup()
230 skey->kasumi.KIi2[n] = Kprime[(n+3)&0x7]; in kasumi_setup()
231 skey->kasumi.KIi3[n] = Kprime[(n+7)&0x7]; in kasumi_setup()
237 void kasumi_done(symmetric_key *skey) in kasumi_done() argument