Commit Graph
11 Commits
Author SHA1 Message Date
oasaleh 469ab761ee Reject AES-KDF seeds that are not 32 bytes long
The seed of AES-KDF is the AES-256 key, but seeds of 8 to 31 bytes were
accepted from the KDF parameters of a KDBX 4 database. Botan then
rejected the key and the error was ignored, so the database key was
derived without any AES rounds, while the database settings still showed
the configured number of rounds. Saving the database kept the short
seed.

Require seeds of exactly 32 bytes, as the KDBX format specifies, and
fail the key derivation when the AES transformation fails. Mark
SymmetricCipher::aesKdf() Q_REQUIRED_RESULT, so that its result can't be
ignored again unnoticed.

KeeShare ignored a failure to set the key of an export. Now that the key
derivation can fail, for example when memory runs out, a signed export
that needs KDBX 4 would then be written with an empty key instead of the
share password. Abort the export instead.
2026-11-28 22:02:25 -05:00
Janek Bevendorff e6c19fdcb1 Add MockChallengeResponseKey and additional composite key component test 2018-03-01 19:26:18 -05:00
Janek Bevendorff 60b3037e4a Add additional unit tests for key file generation 2017-12-27 01:21:49 +01:00
louib 1d30283514 Feature : --key-file option for CLI (#816)
* removing readFromLine

* Removing gui-prompt

* execute uses an arg list.

* Testing with key-file

* Fixing the -a option in EntropyMeter.
2017-07-25 13:41:52 -04:00
thez3ro a53b111182 Update and fix copyright headers 2017-06-14 15:54:43 +02:00
Janek Bevendorff 8d487d31a4 Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
Louis-Bertrand Varin 798041fe11 Extract readKeyFromLine. 2017-01-14 13:25:30 -05:00
Felix Geyer b07de47e35 Add transform key benchmark to TestKeys. 2014-01-19 15:26:32 +01:00
Felix Geyer 6504b6f2bd Drop Qt module name from include statements.
This is a preparation to be able to build KeePassX against Qt 5.
2013-10-03 15:18:16 +02:00
Felix Geyer f215ffa3fa Implement support for key files.
Closes #5.
2011-12-21 23:22:07 +01:00
Felix Geyer 0014d50b59 Deep copy subkeys when cloning CompositeKey. 2011-11-13 14:52:43 +01:00