1
0
forked from QPQ-AG/enoise

Symmetric state layer

This commit is contained in:
Hans Svensson
2018-03-01 20:38:34 +01:00
parent 0d563884eb
commit d0723eb247
8 changed files with 300 additions and 11 deletions
+5
View File
@@ -9,6 +9,7 @@
, encrypt_with_ad/3
, has_key/1
, init/2
, key/1
, rekey/1
, set_key/2
, set_nonce/2
@@ -70,3 +71,7 @@ rekey(CState = #noise_cs{ k = K, cipher = Cipher }) ->
-spec cipher(CState :: state()) -> noise_cipher().
cipher(#noise_cs{ cipher = Cipher }) ->
Cipher.
-spec key(CState :: state()) -> key().
key(#noise_cs{ k = K }) ->
K.