AWS S3 offers three different types of server-side encryption (SSE):
- Server-Side-Encryption (at rest) a.k.a SSE-S3
- Server-Side-Encryption using a KMS a.k.a SSE-KMS
- Server-Side-Encryption with customer keys a.k.a SSE-C
diff --git a/argon2/argon2.go b/argon2/argon2.go | |
index b423fea..4ce5cac 100644 | |
--- a/argon2/argon2.go | |
+++ b/argon2/argon2.go | |
@@ -99,6 +99,37 @@ func IDKey(password, salt []byte, time, memory uint32, threads uint8, keyLen uin | |
return deriveKey(argon2id, password, salt, nil, nil, time, memory, threads, keyLen) | |
} | |
+func New(time, memory uint32, threads uint8) func([]byte, []byte, uint32) []byte { | |
+ if time < 1 { |
diff --git a/argon2/argon2.go b/argon2/argon2.go | |
index b423fea..9535653 100644 | |
--- a/argon2/argon2.go | |
+++ b/argon2/argon2.go | |
@@ -99,6 +99,37 @@ func IDKey(password, salt []byte, time, memory uint32, threads uint8, keyLen uin | |
return deriveKey(argon2id, password, salt, nil, nil, time, memory, threads, keyLen) | |
} | |
+func New(time, memory uint32, threads uint8) func([]byte, []byte, uint32) []byte { | |
+ if time < 1 { |