Only use assembly code

This commit is contained in:
Linus Yang
2017-08-18 22:27:03 +08:00
parent 8d1e735041
commit 4d797fb55d
9 changed files with 2108 additions and 792 deletions

View File

@@ -64,14 +64,12 @@ int aesni_supported( void );
* \param mode AES_ENCRYPT or AES_DECRYPT
* \param input 16-byte input block
* \param output 16-byte output block
*
* \return 0 on success (cannot fail)
*/
int aesni_crypt_ecb( int nr,
unsigned char *rk,
int mode,
const unsigned char input[16],
unsigned char output[16] );
void aesni_crypt_ecb( int nr,
unsigned char *rk,
int mode,
const unsigned char input[16],
unsigned char output[16] );
/**
* \brief Compute decryption round keys from encryption round keys