aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/key.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-04-03 00:15:58 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-05-12 23:18:30 +0800
commit6b23094cff77d7e485e0a2ae5698884f63c87ce7 (patch)
tree54f1b48de9df3cd7b6e8e388b91fa76190d1a852 /crypto/key.go
parent9918b6c84e2547f3d24a6cfeb97cfcbd6cb4dc98 (diff)
downloadgo-tangerine-6b23094cff77d7e485e0a2ae5698884f63c87ce7.tar.gz
go-tangerine-6b23094cff77d7e485e0a2ae5698884f63c87ce7.tar.zst
go-tangerine-6b23094cff77d7e485e0a2ae5698884f63c87ce7.zip
Improve key store passphrase crypto
* Change MAC-then-Encrypt to Encrypt-then-MAC * Change AES256 to AES128 * Use first 16 bytes of KDF derived key for AES and remaining 16 for MAC
Diffstat (limited to 'crypto/key.go')
-rw-r--r--crypto/key.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/key.go b/crypto/key.go
index 0b84bfec1..654d9e83d 100644
--- a/crypto/key.go
+++ b/crypto/key.go
@@ -48,6 +48,7 @@ type plainKeyJSON struct {
}
type cipherJSON struct {
+ MAC []byte
Salt []byte
IV []byte
CipherText []byte