Skip to content

Commit b97e282

Browse files
vrockz747TejasvOnly
authored andcommitted
fix(core): Session key derivation index
1 parent 08daf89 commit b97e282

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

common/core/core_session.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
* GLOBAL VARIABLES
9292
*****************************************************************************/
9393
const ecdsa_curve *curve;
94-
const uint32_t session_key_rotation[2] = {6, 7};
94+
const uint32_t session_key_rotation[1] = {0};
9595
session_config_t CONFIDENTIAL session = {0};
9696

9797
/*****************************************************************************
@@ -225,9 +225,6 @@ static bool derive_server_public_key() {
225225
uint8_t index = 0;
226226
hdnode_public_ckd(&node, session_key_rotation[index]);
227227

228-
index += 1;
229-
hdnode_public_ckd(&node, session_key_rotation[index]);
230-
231228
memcpy(
232229
session.derived_server_public_key, node.public_key, SESSION_PUB_KEY_SIZE);
233230

common/core/core_session.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#define SESSION_IV_SIZE 16
3939
#define SESSION_KEY_SIZE 32
4040

41-
extern const uint32_t session_key_rotation[2];
41+
extern const uint32_t session_key_rotation[1];
4242

4343
typedef enum {
4444
SESSION_OK = 0,

0 commit comments

Comments
 (0)