diff --git a/src/enkodo.nim b/src/enkodo.nim index 4a2d211..c43480a 100644 --- a/src/enkodo.nim +++ b/src/enkodo.nim @@ -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