Merge pull request #1118 from phoenix-frozen/aes128-const-key

made AES-128.set_key's argument const
This commit is contained in:
Laurent Deru 2015-06-16 10:30:35 +02:00
commit 49700c6a79
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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.