summaryrefslogtreecommitdiff
path: root/src/noise.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-11-14 22:47:04 +0900
committerjaseg <git@jaseg.net>2018-11-14 22:47:04 +0900
commiteb481f1cda0a6eae1aa0486acb637f985cddcc2f (patch)
treec6082d8d5e8809e7d590b4f5d0e9d2de2700451b /src/noise.h
parent66f9e82c5ca313fb90edff6a9d1956c02c973934 (diff)
downloadsecure-hid-eb481f1cda0a6eae1aa0486acb637f985cddcc2f.tar.gz
secure-hid-eb481f1cda0a6eae1aa0486acb637f985cddcc2f.tar.bz2
secure-hid-eb481f1cda0a6eae1aa0486acb637f985cddcc2f.zip
known device/sram data persistence working
Diffstat (limited to 'src/noise.h')
-rw-r--r--src/noise.h4
1 files changed, 2 insertions, 2 deletions
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);