AES-128: Removed unused function

This commit is contained in:
kkrentz 2018-04-24 07:34:43 -07:00
parent f93c334ef1
commit b13d1bc526
2 changed files with 0 additions and 15 deletions

View File

@ -166,16 +166,6 @@ encrypt(uint8_t *state)
} }
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
void
aes_128_set_padded_key(uint8_t *key, uint8_t key_len)
{
uint8_t block[AES_128_BLOCK_SIZE];
memset(block, 0, AES_128_BLOCK_SIZE);
memcpy(block, key, key_len);
AES_128.set_key(block);
}
/*---------------------------------------------------------------------------*/
const struct aes_128_driver aes_128_driver = { const struct aes_128_driver aes_128_driver = {
set_key, set_key,
encrypt encrypt

View File

@ -67,11 +67,6 @@ struct aes_128_driver {
void (* encrypt)(uint8_t *plaintext_and_result); void (* encrypt)(uint8_t *plaintext_and_result);
}; };
/**
* \brief Pads the key with zeroes before calling AES_128.set_key
*/
void aes_128_set_padded_key(uint8_t *key, uint8_t key_len);
extern const struct aes_128_driver AES_128; extern const struct aes_128_driver AES_128;
#endif /* AES_128_H_ */ #endif /* AES_128_H_ */