mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-14 13:27:21 +00:00
Modify sp and services to use the protobuf module
This commit is contained in:
parent
66ec035ee0
commit
4fc74b0994
23 changed files with 59 additions and 1025 deletions
|
|
@ -9,6 +9,8 @@ import (
|
|||
"io"
|
||||
)
|
||||
|
||||
var ErrAuthenticationFailed = errors.New("cipher: message authentication failed")
|
||||
|
||||
func GCMEncrypt(key []byte, plaintext []byte) ([]byte, error) {
|
||||
if len(key) != 32 {
|
||||
return nil, fmt.Errorf("key is not 32 bytes")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue