Skip to content

Commit

Permalink
exported the encryption data structures
Browse files Browse the repository at this point in the history
  • Loading branch information
hortinstein committed Jan 25, 2023
1 parent 9e7cc61 commit 3f0fbf6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/enkodo.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
import monocypher
import sysrandom
import enkodo/types

type
Hash* = array[64, byte]
Key* = array[32, byte]
Nonce* = array[24, byte]
Mac* = array[16, byte]
Signature* = array[64, byte]

type
EncObj* = object
publicKey*: Key
nonce*: Nonce
mac*: Mac
cipherLen*: int
cipherText*: seq[byte]

#[
helper function to convert bytes to string
Expand Down

0 comments on commit 3f0fbf6

Please sign in to comment.