made AES-128.set_key's argument const

This commit is contained in:
Justin King-Lacroix 2015-06-15 20:20:07 +01:00
parent 06f7acfd5b
commit db15647c2b
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ galois_mul2(uint8_t value)
}
/*---------------------------------------------------------------------------*/
static void
set_key(uint8_t *key)
set_key(const uint8_t *key)
{
uint8_t i;
uint8_t j;

View file

@ -59,7 +59,7 @@ struct aes_128_driver {
/**
* \brief Sets the current key.
*/
void (* set_key)(uint8_t *key);
void (* set_key)(const uint8_t *key);
/**
* \brief Encrypts.