From eb481f1cda0a6eae1aa0486acb637f985cddcc2f Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 14 Nov 2018 22:47:04 +0900 Subject: known device/sram data persistence working --- src/noise.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/noise.h') diff --git a/src/noise.h b/src/noise.h index a4c1e6e..92acdcf 100644 --- a/src/noise.h +++ b/src/noise.h @@ -30,7 +30,7 @@ struct NoiseState { NoiseHandshakeState *handshake; enum handshake_state handshake_state; NoiseCipherState *tx_cipher, *rx_cipher; - uint8_t local_key[CURVE25519_KEY_LEN]; + uint8_t *local_key; uint8_t remote_key[CURVE25519_KEY_LEN]; uint8_t *remote_key_reference; uint8_t handshake_hash[BLAKE2S_HASH_SIZE]; @@ -39,7 +39,7 @@ struct NoiseState { void uninit_handshake(struct NoiseState *st, enum handshake_state new_state); -void noise_state_init(struct NoiseState *st, uint8_t *remote_key_reference); +void noise_state_init(struct NoiseState *st, uint8_t *remote_key_reference, uint8_t *local_key); void persist_remote_key(struct NoiseState *st); int start_protocol_handshake(struct NoiseState *st); int reset_protocol_handshake(struct NoiseState *st); -- cgit