FX_BOOL CPDF_CryptoHandler::EncryptContent(uint32_t objnum, uint32_t gennum, const uint8_t* src_buf, uint32_t src_size, uint8_t* dest_buf, uint32_t& dest_size) { CryptBlock(TRUE, objnum, gennum, src_buf, src_size, dest_buf, dest_size); return TRUE; }
bool CPDF_CryptoHandler::EncryptContent(uint32_t objnum, uint32_t gennum, const uint8_t* src_buf, uint32_t src_size, uint8_t* dest_buf, uint32_t& dest_size) { CryptBlock(true, objnum, gennum, src_buf, src_size, dest_buf, dest_size); return true; }
//Used to encrypt a password. //Cannot be used to decrypt because may contain zeros. void EncryptSt(char *st, uint8_t mix) { int l; InitRandLayers(TheKey); l = strlen(st); CryptBlock((uint8_t*)st, l, RandRandByte(mix), mix); //start, end, byte, mix }