keepassxc/src/format
Jonathan White 80809ace67 Replace all crypto libraries with Botan
Selected the [Botan crypto library](https://github.com/randombit/botan) due to its feature list, maintainer support, availability across all deployment platforms, and ease of use. Also evaluated Crypto++ as a viable candidate, but the additional features of Botan (PKCS#11, TPM, etc) won out.

The random number generator received a backend upgrade. Botan prefers hardware-based RNG's and will provide one if available. This is transparent to KeePassXC and a significant improvement over gcrypt.

Replaced Argon2 library with built-in Botan implementation that supports i, d, and id. This requires Botan 2.11.0 or higher. Also simplified the parameter test across KDF's.

Aligned SymmetricCipher parameters with available modes. All encrypt and decrypt operations are done in-place instead of returning new objects. This allows use of secure vectors in the future with no additional overhead.

Took this opportunity to decouple KeeShare from SSH Agent. Removed leftover code from OpenSSHKey and consolidated the SSH Agent code into the same directory. Removed bcrypt and blowfish inserts since they are provided by Botan.

Additionally simplified KeeShare settings interface by removing raw certificate byte data from the user interface. KeeShare will be further refactored in a future PR.

NOTE: This PR breaks backwards compatibility with KeeShare certificates due to different RSA key storage with Botan. As a result, new "own" certificates will need to be generated and trust re-established.

Removed YKChallengeResponseKeyCLI in favor of just using the original implementation with signal/slots.

Removed TestRandom stub since it was just faking random numbers and not actually using the backend. TestRandomGenerator now uses the actual RNG.

Greatly simplified Secret Service plugin's use of crypto functions with Botan.
2021-04-05 22:56:03 -04:00
..
CsvExporter.cpp Improve CSV export and import capability 2020-09-01 07:57:31 -04:00
CsvExporter.h CLI: Export database as CSV 2019-09-22 12:42:53 -04:00
HtmlExporter.cpp HTML Export: Don't waste horizontal space 2020-08-31 20:17:30 -04:00
HtmlExporter.h Add ability to export database as HTML for printing 2019-06-30 15:29:36 -04:00
Kdbx3Reader.cpp Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
Kdbx3Reader.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
Kdbx3Writer.cpp Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
Kdbx3Writer.h Refactor database extraction (#2698) 2019-02-13 19:24:54 +01:00
Kdbx4Reader.cpp Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
Kdbx4Reader.h Read all database attachments even if duplicated 2019-05-25 15:48:19 -04:00
Kdbx4Writer.cpp Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
Kdbx4Writer.h Refactor database extraction (#2698) 2019-02-13 19:24:54 +01:00
KdbxReader.cpp Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
KdbxReader.h Refactor database extraction (#2698) 2019-02-13 19:24:54 +01:00
KdbxWriter.cpp Refactor database extraction (#2698) 2019-02-13 19:24:54 +01:00
KdbxWriter.h CLI: Use stderr for password prompt 2020-05-14 16:33:25 -04:00
KdbxXmlReader.cpp Replace "Master Key" with "Database Credentials" 2020-07-02 17:39:45 -04:00
KdbxXmlReader.h Removing QColor (from Qt::Widgets) from core modules. (#4247) 2020-01-26 21:38:43 -05:00
KdbxXmlWriter.cpp Replace "Master Key" with "Database Credentials" 2020-07-02 17:39:45 -04:00
KdbxXmlWriter.h Removing QColor (from Qt::Widgets) from core modules. (#4247) 2020-01-26 21:38:43 -05:00
KeePass1.h Restore correct formatting 2018-11-28 18:29:15 -05:00
KeePass1Reader.cpp Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
KeePass1Reader.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
KeePass2.cpp Add Argon2id KDF 2020-12-03 20:06:58 +01:00
KeePass2.h Add Argon2id KDF 2020-12-03 20:06:58 +01:00
KeePass2RandomStream.cpp Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
KeePass2RandomStream.h Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
KeePass2Reader.cpp Address translation feedback from Transifex 2021-02-19 18:37:33 -05:00
KeePass2Reader.h Refactor database extraction (#2698) 2019-02-13 19:24:54 +01:00
KeePass2Writer.cpp Refactor database extraction (#2698) 2019-02-13 19:24:54 +01:00
KeePass2Writer.h Refactor database extraction (#2698) 2019-02-13 19:24:54 +01:00
OpData01.cpp Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
OpData01.h Correct Translation Warnings 2019-10-20 20:39:21 -04:00
OpVaultReader.cpp Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
OpVaultReader.h OPVault: Use Text instead of Name for attribute and section names 2021-04-01 22:59:44 -04:00
OpVaultReaderAttachments.cpp Improve OPVault handling and replace test opvault 2020-05-14 15:17:28 -04:00
OpVaultReaderBandEntry.cpp Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
OpVaultReaderSections.cpp OPVault: Use Text instead of Name for attribute and section names 2021-04-01 22:59:44 -04:00