AES-128: Removed unused function
This commit is contained in:
parent
f93c334ef1
commit
b13d1bc526
@ -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
|
||||||
|
@ -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_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user