diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-04-03 00:15:58 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-12 23:18:30 +0800 |
commit | 6b23094cff77d7e485e0a2ae5698884f63c87ce7 (patch) | |
tree | 54f1b48de9df3cd7b6e8e388b91fa76190d1a852 /crypto/key.go | |
parent | 9918b6c84e2547f3d24a6cfeb97cfcbd6cb4dc98 (diff) | |
download | dexon-6b23094cff77d7e485e0a2ae5698884f63c87ce7.tar.gz dexon-6b23094cff77d7e485e0a2ae5698884f63c87ce7.tar.zst dexon-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.go | 1 |
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 |