Path: blob/master/libs/tomcrypt/src/modes/f8/f8_decrypt.c
5972 views
/* LibTomCrypt, modular cryptographic library -- Tom St Denis1*2* LibTomCrypt is a library that provides various cryptographic3* algorithms in a highly modular and flexible manner.4*5* The library is free for all purposes without any express6* guarantee it works.7*/8#include "tomcrypt.h"910/**11@file f8_decrypt.c12F8 implementation, decrypt data, Tom St Denis13*/1415#ifdef LTC_F8_MODE1617/**18F8 decrypt19@param ct Ciphertext20@param pt [out] Plaintext21@param len Length of ciphertext (octets)22@param f8 F8 state23@return CRYPT_OK if successful24*/25int f8_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_F8 *f8)26{27LTC_ARGCHK(pt != NULL);28LTC_ARGCHK(ct != NULL);29LTC_ARGCHK(f8 != NULL);30return f8_encrypt(ct, pt, len, f8);31}323334#endif353637