Lines Matching refs:pt
131 static int _rc2_ecb_encrypt( const unsigned char *pt, in _rc2_ecb_encrypt() argument
135 int rc2_ecb_encrypt( const unsigned char *pt, in _rc2_ecb_encrypt()
143 LTC_ARGCHK(pt != NULL); in _rc2_ecb_encrypt()
149 x76 = ((unsigned)pt[7] << 8) + (unsigned)pt[6]; in _rc2_ecb_encrypt()
150 x54 = ((unsigned)pt[5] << 8) + (unsigned)pt[4]; in _rc2_ecb_encrypt()
151 x32 = ((unsigned)pt[3] << 8) + (unsigned)pt[2]; in _rc2_ecb_encrypt()
152 x10 = ((unsigned)pt[1] << 8) + (unsigned)pt[0]; in _rc2_ecb_encrypt()
188 int rc2_ecb_encrypt( const unsigned char *pt, in rc2_ecb_encrypt() argument
192 int err = _rc2_ecb_encrypt(pt, ct, skey); in rc2_ecb_encrypt()
210 unsigned char *pt, in _rc2_ecb_decrypt() argument
214 unsigned char *pt, in _rc2_ecb_decrypt()
222 LTC_ARGCHK(pt != NULL); in _rc2_ecb_decrypt()
254 pt[0] = (unsigned char)x10; in _rc2_ecb_decrypt()
255 pt[1] = (unsigned char)(x10 >> 8); in _rc2_ecb_decrypt()
256 pt[2] = (unsigned char)x32; in _rc2_ecb_decrypt()
257 pt[3] = (unsigned char)(x32 >> 8); in _rc2_ecb_decrypt()
258 pt[4] = (unsigned char)x54; in _rc2_ecb_decrypt()
259 pt[5] = (unsigned char)(x54 >> 8); in _rc2_ecb_decrypt()
260 pt[6] = (unsigned char)x76; in _rc2_ecb_decrypt()
261 pt[7] = (unsigned char)(x76 >> 8); in _rc2_ecb_decrypt()
268 unsigned char *pt, in rc2_ecb_decrypt() argument
271 int err = _rc2_ecb_decrypt(ct, pt, skey); in rc2_ecb_decrypt()
288 unsigned char key[16], pt[8], ct[8]; in rc2_test()
315 rc2_ecb_encrypt(tests[x].pt, tmp[0], &skey); in rc2_test()
318 if (XMEMCMP(tmp[0], tests[x].ct, 8) != 0 || XMEMCMP(tmp[1], tests[x].pt, 8) != 0) { in rc2_test()