Allow Cryptogam's AES thunk to be inlined
parent
4e78abe584
commit
6660982a55
12
rijndael.cpp
12
rijndael.cpp
|
|
@ -345,25 +345,21 @@ extern size_t Rijndael_Dec_AdvancedProcessBlocks128_6x1_ALTIVEC(const word32 *su
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (CRYPTOGAMS_ARM_AES)
|
#if (CRYPTOGAMS_ARM_AES)
|
||||||
int CRYPTOPP_NOINLINE
|
int CRYPTOGAMS_set_encrypt_key(const byte *userKey, const int bitLen, word32 *rkey)
|
||||||
CRYPTOGAMS_set_encrypt_key(const byte *userKey, const int bitLen, word32 *rkey)
|
|
||||||
{
|
{
|
||||||
return AES_set_encrypt_key(userKey, bitLen, rkey);
|
return AES_set_encrypt_key(userKey, bitLen, rkey);
|
||||||
}
|
}
|
||||||
int CRYPTOPP_NOINLINE
|
int CRYPTOGAMS_set_decrypt_key(const byte *userKey, const int bitLen, word32 *rkey)
|
||||||
CRYPTOGAMS_set_decrypt_key(const byte *userKey, const int bitLen, word32 *rkey)
|
|
||||||
{
|
{
|
||||||
return AES_set_decrypt_key(userKey, bitLen, rkey);
|
return AES_set_decrypt_key(userKey, bitLen, rkey);
|
||||||
}
|
}
|
||||||
void CRYPTOPP_NOINLINE
|
void CRYPTOGAMS_encrypt(const byte *inBlock, const byte *xorBlock, byte *outBlock, const word32 *rkey)
|
||||||
CRYPTOGAMS_encrypt(const byte *inBlock, const byte *xorBlock, byte *outBlock, const word32 *rkey)
|
|
||||||
{
|
{
|
||||||
AES_encrypt(inBlock, outBlock, rkey);
|
AES_encrypt(inBlock, outBlock, rkey);
|
||||||
if (xorBlock)
|
if (xorBlock)
|
||||||
xorbuf (outBlock, xorBlock, 16);
|
xorbuf (outBlock, xorBlock, 16);
|
||||||
}
|
}
|
||||||
void CRYPTOPP_NOINLINE
|
void CRYPTOGAMS_decrypt(const byte *inBlock, const byte *xorBlock, byte *outBlock, const word32 *rkey)
|
||||||
CRYPTOGAMS_decrypt(const byte *inBlock, const byte *xorBlock, byte *outBlock, const word32 *rkey)
|
|
||||||
{
|
{
|
||||||
AES_decrypt(inBlock, outBlock, rkey);
|
AES_decrypt(inBlock, outBlock, rkey);
|
||||||
if (xorBlock)
|
if (xorBlock)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue