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