Skip to content

Commit 8df9f21

Browse files
committed
include:fix aes.h iv buffer is not writable
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 6a3808b commit 8df9f21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/crypto/aes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C" {
2323
* @return 0 on success, negative value on error
2424
*/
2525
int aes_cbc_decrypt(uint8_t* out, const uint8_t* in, size_t inSz,
26-
const uint8_t* key, const uint8_t* iv);
26+
const uint8_t* key, uint8_t* iv);
2727

2828
/**
2929
* Encrypt a data buffer
@@ -35,7 +35,7 @@ int aes_cbc_decrypt(uint8_t* out, const uint8_t* in, size_t inSz,
3535
* @return 0 on success, negative value on error
3636
*/
3737
int aes_cbc_encrypt(uint8_t* out, const uint8_t* in, size_t inSz,
38-
const uint8_t* key, const uint8_t* iv);
38+
const uint8_t* key, uint8_t* iv);
3939

4040
#ifdef __cplusplus
4141
}

0 commit comments

Comments
 (0)