Lines Matching refs:pt
123 static int _rc6_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey) in _rc6_ecb_encrypt() argument
125 int rc6_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey) in _rc6_ecb_encrypt()
132 LTC_ARGCHK(pt != NULL); in _rc6_ecb_encrypt()
134 LOAD32L(a,&pt[0]);LOAD32L(b,&pt[4]);LOAD32L(c,&pt[8]);LOAD32L(d,&pt[12]); in _rc6_ecb_encrypt()
162 int rc6_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey) in rc6_ecb_encrypt() argument
164 int err = _rc6_ecb_encrypt(pt, ct, skey); in rc6_ecb_encrypt()
177 static int _rc6_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey) in _rc6_ecb_decrypt() argument
179 int rc6_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey) in _rc6_ecb_decrypt()
186 LTC_ARGCHK(pt != NULL); in _rc6_ecb_decrypt()
212 STORE32L(a,&pt[0]);STORE32L(b,&pt[4]);STORE32L(c,&pt[8]);STORE32L(d,&pt[12]); in _rc6_ecb_decrypt()
218 int rc6_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey) in rc6_ecb_decrypt() argument
220 int err = _rc6_ecb_decrypt(ct, pt, skey); in rc6_ecb_decrypt()
237 unsigned char key[32], pt[16], ct[16]; in rc6_test()
284 rc6_ecb_encrypt(tests[x].pt, tmp[0], &key); in rc6_test()
288 if (XMEMCMP(tmp[0], tests[x].ct, 16) || XMEMCMP(tmp[1], tests[x].pt, 16)) { in rc6_test()
298 if (XMEMCMP(tmp[1], tests[x].pt, 16)) { in rc6_test()
302 for (y = 0; y < 16; y++) printf("%02x ", tests[x].pt[y]); in rc6_test()