mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
chore: add comments to export functions
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user