|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Dispatches between the supported KDBX key derivation functions. More...
#include <kdbx_kdf.hh>
Static Public Member Functions | |
| static void | ParseParameters (std::istream &field, Database &db) |
| Parses the KDF parameters header field of a KDBX 4 database. | |
| static void | WriteParameters (std::ostream &dst, const Database &db) |
| Writes the KDF parameters of db into a variant dictionary stream. | |
| static SecureBuffer< 32 > | Transform (const Key &key, const Database &db, Key::SubKeyResolution resolution) |
| Derives the transformed key using the database's configured KDF. | |
Dispatches between the supported KDBX key derivation functions.
All operations are static: the class carries no per-instance state and only translates between the KDBX 4 variant dictionary representation, the Database KDF settings and the Key transformation functions.
Parses the KDF parameters header field of a KDBX 4 database.
Reads the serialized variant dictionary from field, identifies the KDF by its UUID and populates the KDF settings on db.
| field | Stream containing the serialized KDF parameters. |
| db | The database to populate with the parsed KDF settings. |
|
static |
Derives the transformed key using the database's configured KDF.
| key | The user key to transform (password / key file / composite). |
| db | The database providing the KDF parameters. |
| resolution | Strategy for resolving sub keys before the transform. |
Writes the KDF parameters of db into a variant dictionary stream.
| dst | Output stream to serialize the KDF parameters into. |
| db | The database whose KDF settings to serialize. |