mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 03:30:01 +00:00
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
|
||||
set_key(uint8_t *key)
|
||||
set_key(const uint8_t *key)
|
||||
{
|
||||
uint8_t i;
|
||||
uint8_t j;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user