made AES-128.set_key's argument const
This commit is contained in:
parent
06f7acfd5b
commit
db15647c2b
|
@ -80,7 +80,7 @@ galois_mul2(uint8_t value)
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
set_key(uint8_t *key)
|
set_key(const uint8_t *key)
|
||||||
{
|
{
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
uint8_t j;
|
uint8_t j;
|
||||||
|
|
|
@ -59,7 +59,7 @@ struct aes_128_driver {
|
||||||
/**
|
/**
|
||||||
* \brief Sets the current key.
|
* \brief Sets the current key.
|
||||||
*/
|
*/
|
||||||
void (* set_key)(uint8_t *key);
|
void (* set_key)(const uint8_t *key);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Encrypts.
|
* \brief Encrypts.
|
||||||
|
|
Loading…
Reference in a new issue