Skip to content

Commit

Permalink
add s flag
Browse files Browse the repository at this point in the history
  • Loading branch information
onlykey committed Feb 25, 2022
1 parent e7b31f2 commit dc24867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OnlyKey/OnlyKey.ino
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ void setup() {
ctap_buffer[435]=3;
//Write keys
okcore_flashset_common(ctap_buffer, (unsigned long *)enckeysectoradr, 436);
okcrypto_aes_gcm_encrypt2(ctap_buffer+480, ctap_buffer+436, ctap_buffer+448, 32);
okcrypto_aes_gcm_encrypt2(ctap_buffer+480, ctap_buffer+436, ctap_buffer+448, 32, true);
//Write encrypted contents to flash
okcore_flashset_common(ctap_buffer, (unsigned long *)enckeysectoradr, 513);
// Set write flag
Expand Down

0 comments on commit dc24867

Please sign in to comment.