chore: add comments to export functions

This commit is contained in:
nadoo committed 2020-11-06 22:47:33 +08:00
1 parent 417ac556f7
commit 8a2e95b17e
9 files changed
+33 -12

No files matched your search

@@ -11,6 +11,7 @@ import (
"golang.org/x/crypto/hkdf"
)
// Cipher generates a pair of stream ciphers for encryption and decryption.
type Cipher interface {
KeySize() int
SaltSize() int
@@ -18,6 +19,7 @@ type Cipher interface {
Decrypter(salt []byte) (cipher.AEAD, error)
}
// KeySizeError is an error about the key size.
type KeySizeError int
func (e KeySizeError) Error() string {