• Home
  • Raw
  • Download

Lines Matching refs:skey

75 int noekeon_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey)  in noekeon_setup()  argument
80 LTC_ARGCHK(skey != NULL); in noekeon_setup()
90 LOAD32H(skey->noekeon.K[0],&key[0]); in noekeon_setup()
91 LOAD32H(skey->noekeon.K[1],&key[4]); in noekeon_setup()
92 LOAD32H(skey->noekeon.K[2],&key[8]); in noekeon_setup()
93 LOAD32H(skey->noekeon.K[3],&key[12]); in noekeon_setup()
95 LOAD32H(skey->noekeon.dK[0],&key[0]); in noekeon_setup()
96 LOAD32H(skey->noekeon.dK[1],&key[4]); in noekeon_setup()
97 LOAD32H(skey->noekeon.dK[2],&key[8]); in noekeon_setup()
98 LOAD32H(skey->noekeon.dK[3],&key[12]); in noekeon_setup()
100 kTHETA(skey->noekeon.dK[0], skey->noekeon.dK[1], skey->noekeon.dK[2], skey->noekeon.dK[3]); in noekeon_setup()
113 static int _noekeon_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey) in _noekeon_ecb_encrypt() argument
115 int noekeon_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey) in _noekeon_ecb_encrypt()
121 LTC_ARGCHK(skey != NULL); in _noekeon_ecb_encrypt()
130 THETA(skey->noekeon.K, a,b,c,d); \ in _noekeon_ecb_encrypt()
142 THETA(skey->noekeon.K, a, b, c, d); in _noekeon_ecb_encrypt()
151 int noekeon_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey) in noekeon_ecb_encrypt() argument
153 int err = _noekeon_ecb_encrypt(pt, ct, skey); in noekeon_ecb_encrypt()
167 static int _noekeon_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey) in _noekeon_ecb_decrypt() argument
169 int noekeon_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey) in _noekeon_ecb_decrypt()
175 LTC_ARGCHK(skey != NULL); in _noekeon_ecb_decrypt()
184 THETA(skey->noekeon.dK, a,b,c,d); \ in _noekeon_ecb_decrypt()
196 THETA(skey->noekeon.dK, a,b,c,d); in _noekeon_ecb_decrypt()
204 int noekeon_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey) in noekeon_ecb_decrypt() argument
206 int err = _noekeon_ecb_decrypt(ct, pt, skey); in noekeon_ecb_decrypt()
278 void noekeon_done(symmetric_key *skey) in noekeon_done() argument