Skip to content

Commit 7bd6803

Browse files
TofMassilia13320Grolleau-Benjamin
authored andcommitted
[refactor] STSELib 1.2.0 API change
Signed-off-by: Benjamin Grolleau <benjamin.grolleau@outlook.com>
1 parent 3c51576 commit 7bd6803

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

api/stse_symmetric_keys_management.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,9 @@ stse_ReturnCode_t stse_host_secure_channel_keys_provisioning(
537537
STSE_AES_KEY_USAGE_CIPHER,
538538
host_cipher_key_index);
539539
memset(host_cipher_key->key, 0, sizeof(host_cipher_key->key));
540+
if (ret != STSE_OK) {
541+
return ret;
542+
}
540543

541544
return ret;
542545
#else
@@ -1804,6 +1807,12 @@ stse_ReturnCode_t stse_establish_symmetric_key_authenticated(
18041807

18051808
memset(okm_buffer, 0, STSE_AES_256_KEY_SIZE);
18061809

1810+
/* - Store confirmation key */
1811+
ret = stse_platform_store_aes_key(
1812+
okm_buffer,
1813+
STSE_AES_256_KEY_SIZE,
1814+
STSE_AES_KEY_USAGE_GENERIC_SECRET,
1815+
&confirmation_key_index);
18071816
if (ret != STSE_OK) {
18081817
return ret;
18091818
}

0 commit comments

Comments
 (0)