1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner.
6 * The library is free for all purposes without any express
13 CTR implementation, decrypt data, Tom St Denis
21 @param pt [out] Plaintext
22 @param len Length of ciphertext (octets)
24 @return CRYPT_OK if successful
26 int ctr_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_CTR *ctr)
28 LTC_ARGCHK(pt != NULL);
29 LTC_ARGCHK(ct != NULL);
30 LTC_ARGCHK(ctr != NULL);
32 return ctr_encrypt(ct, pt, len, ctr);
38 /* ref: $Format:%D$ */
39 /* git commit: $Format:%H$ */
40 /* commit time: $Format:%ai$ */