mirror of
https://github.com/quexten/goldwarden.git
synced 2024-09-11 19:17:33 +03:00
Cleanup duplicated import
This commit is contained in:
parent
23a336e4b3
commit
8839b33f8c
@ -6,7 +6,6 @@ import (
|
||||
"crypto/cipher"
|
||||
"crypto/hmac"
|
||||
"crypto/rand"
|
||||
cryptorand "crypto/rand"
|
||||
"crypto/rsa"
|
||||
"crypto/sha1"
|
||||
"crypto/sha256"
|
||||
@ -196,7 +195,7 @@ func EncryptWith(data []byte, encType EncStringType, key SymmetricEncryptionKey)
|
||||
return s, err
|
||||
}
|
||||
s.IV = make([]byte, aes.BlockSize)
|
||||
if _, err := io.ReadFull(cryptorand.Reader, s.IV); err != nil {
|
||||
if _, err := io.ReadFull(rand.Reader, s.IV); err != nil {
|
||||
return s, err
|
||||
}
|
||||
s.CT = make([]byte, len(data))
|
||||
|
Loading…
Reference in New Issue
Block a user