diff options
author | jaseg <git@jaseg.net> | 2018-11-14 22:47:04 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2018-11-14 22:47:04 +0900 |
commit | eb481f1cda0a6eae1aa0486acb637f985cddcc2f (patch) | |
tree | c6082d8d5e8809e7d590b4f5d0e9d2de2700451b /src/noise.h | |
parent | 66f9e82c5ca313fb90edff6a9d1956c02c973934 (diff) | |
download | secure-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.h | 4 |
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); |