Skip to content

Commit

Permalink
src/bolos/cx_aes_sdk2.c: set_aes_iv should be true only when using hd…
Browse files Browse the repository at this point in the history
…w_cbc
  • Loading branch information
Xavier Chapron committed Dec 19, 2023
1 parent f9dfe87 commit 4cffece
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.1] - 2023-12-19

### Fixed
- CX: Fix AES implementation on NanoS

## [0.4.0] - 2023-12-04

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/bolos/cx_aes_sdk2.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cx_err_t sys_cx_aes_set_key_hw(const cx_aes_key_t *key, uint32_t mode)
}
local_aes_op = mode & CX_MASK_SIGCRYPT;
local_aes_chain_mode = mode & CX_MASK_CHAIN;
set_aes_iv = true;
set_aes_iv = hdw_cbc;
local_aes_ready = true;

return CX_OK;
Expand Down

0 comments on commit 4cffece

Please sign in to comment.