Allow Cryptogam's AES thunk to be inlined

pull/723/head
Jeffrey Walton 2018-10-14 07:39:08 -04:00
parent 4e78abe584
commit 6660982a55
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 4 additions and 8 deletions

View File

@ -345,25 +345,21 @@ extern size_t Rijndael_Dec_AdvancedProcessBlocks128_6x1_ALTIVEC(const word32 *su
#endif
#if (CRYPTOGAMS_ARM_AES)
int CRYPTOPP_NOINLINE
CRYPTOGAMS_set_encrypt_key(const byte *userKey, const int bitLen, word32 *rkey)
int CRYPTOGAMS_set_encrypt_key(const byte *userKey, const int bitLen, word32 *rkey)
{
return AES_set_encrypt_key(userKey, bitLen, rkey);
}
int CRYPTOPP_NOINLINE
CRYPTOGAMS_set_decrypt_key(const byte *userKey, const int bitLen, word32 *rkey)
int CRYPTOGAMS_set_decrypt_key(const byte *userKey, const int bitLen, word32 *rkey)
{
return AES_set_decrypt_key(userKey, bitLen, rkey);
}
void CRYPTOPP_NOINLINE
CRYPTOGAMS_encrypt(const byte *inBlock, const byte *xorBlock, byte *outBlock, const word32 *rkey)
void CRYPTOGAMS_encrypt(const byte *inBlock, const byte *xorBlock, byte *outBlock, const word32 *rkey)
{
AES_encrypt(inBlock, outBlock, rkey);
if (xorBlock)
xorbuf (outBlock, xorBlock, 16);
}
void CRYPTOPP_NOINLINE
CRYPTOGAMS_decrypt(const byte *inBlock, const byte *xorBlock, byte *outBlock, const word32 *rkey)
void CRYPTOGAMS_decrypt(const byte *inBlock, const byte *xorBlock, byte *outBlock, const word32 *rkey)
{
AES_decrypt(inBlock, outBlock, rkey);
if (xorBlock)