diff options
Diffstat (limited to 'aes_keywrap.c')
-rw-r--r-- | aes_keywrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aes_keywrap.c b/aes_keywrap.c index 9ded0e1..a41a866 100644 --- a/aes_keywrap.c +++ b/aes_keywrap.c @@ -63,7 +63,7 @@ static hal_error_t load_kek(const uint8_t *K, const size_t K_len, const kek_acti config[3] |= AES_CONFIG_ENCDEC; break; case KEK_decrypting: - config[3] &= !AES_CONFIG_ENCDEC; + config[3] &= ~AES_CONFIG_ENCDEC; break; default: return HAL_ERROR_BAD_ARGUMENTS; |