good morning!!!!

Skip to content
Snippets Groups Projects
Commit afc2039f authored by Armin Braun's avatar Armin Braun
Browse files

accounts/keystore: Improved error message

* Fix for #15668
parent 13db4af3
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ func decryptPreSaleKey(fileContent []byte, password string) (key *Key, err error
if err != nil {
return nil, errors.New("invalid hex in encSeed")
}
if len(encSeedBytes) < 16 {
return nil, errors.New("invalid encSeed, too short")
}
iv := encSeedBytes[:16]
cipherText := encSeedBytes[16:]
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment