aboutsummaryrefslogtreecommitdiff
path: root/internal/siv_aead/siv_aead.go
diff options
context:
space:
mode:
authorChristian Stewart2022-06-25 14:57:38 -0700
committerrfjakob2022-12-21 18:38:11 +0100
commit7ee4c8e9c3b0fb630b48c5940a7faa220ef5e63a (patch)
tree876db025c672902e27eb85fdac7d797b84b00390 /internal/siv_aead/siv_aead.go
parent0ec7ffbfe96887f25feb7fda60b984ea18a42e0f (diff)
go.mod: fix jacobsa/crypto build on riscv64
Replace dependency jacobsa/crypto with a fork with support for riscv64. Issue: https://github.com/rfjakob/gocryptfs/issues/666 Upstream PR: https://github.com/jacobsa/crypto/issues/13 Unaddressed on jacobsa/crypto: https://github.com/jacobsa/crypto/pull/14#issuecomment-1182744229 Signed-off-by: Christian Stewart <christian@paral.in>
Diffstat (limited to 'internal/siv_aead/siv_aead.go')
-rw-r--r--internal/siv_aead/siv_aead.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/siv_aead/siv_aead.go b/internal/siv_aead/siv_aead.go
index 482efd9..dc37c8a 100644
--- a/internal/siv_aead/siv_aead.go
+++ b/internal/siv_aead/siv_aead.go
@@ -6,7 +6,7 @@ import (
"crypto/cipher"
"log"
- "github.com/jacobsa/crypto/siv"
+ "github.com/aperturerobotics/jacobsa-crypto/siv"
)
type sivAead struct {
@@ -63,7 +63,7 @@ func (s *sivAead) Seal(dst, nonce, plaintext, authData []byte) []byte {
if len(s.key) == 0 {
log.Panic("Key has been wiped?")
}
- // https://github.com/jacobsa/crypto/blob/master/siv/encrypt.go#L48:
+ // https://github.com/aperturerobotics/jacobsa-crypto/blob/master/siv/encrypt.go#L48:
// As per RFC 5297 section 3, you may use this function for nonce-based
// authenticated encryption by passing a nonce as the last associated
// data element.