You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2022. It is now read-only.
The current PrivKey is a Key that can also sign stuff, so it actually is a SigKey. You could also let MACs implement this interface.
Signatures (SigKey and VerifyKey)
Key Exchange (KXPrivKey.Exchange(KXPubKey)
Symmetric Secrets implementing SignKey and VerifyKey as well as EncryptKey and DecryptKey and AuthEncKey and AuthDecKey (as in golang.org/x/crypto/nacl/secretbox).
Asymmetric Authenticated Encryption, providing defaults by combining Key Exchange + symmetric AE (or just use golang.org/x/crypto/nacl/box).
I'll keep on thinking about this and drop some notes over the day.
The current
PrivKeyis aKeythat can also sign stuff, so it actually is aSigKey. You could also let MACs implement this interface.SigKeyandVerifyKey)KXPrivKey.Exchange(KXPubKey)SignKeyandVerifyKeyas well asEncryptKeyandDecryptKeyandAuthEncKeyandAuthDecKey(as ingolang.org/x/crypto/nacl/secretbox).golang.org/x/crypto/nacl/box).I'll keep on thinking about this and drop some notes over the day.