#include <KeyDerivationFunction.h>
|
| | KeyDerivationFunction (const SecurityProtocol &pSecurityProtocol) |
| | Creates a new instance with derivation function algorithm determined by parameter.
|
| |
| | ~KeyDerivationFunction ()=default |
| |
| bool | isInitialized () const |
| | Returns true, if initialization succeeded, i.e.
|
| |
| QByteArray | enc (const QByteArray &pSecret, const QByteArray &pNonce=QByteArray()) const |
| | Derive the encryption key.
|
| |
| QByteArray | mac (const QByteArray &pSecret, const QByteArray &pNonce=QByteArray()) const |
| | Derive the MAC key.
|
| |
| QByteArray | pi (const QByteArray &pSecret) const |
| | Derive the password key.
|
| |
◆ KeyDerivationFunction()
| KeyDerivationFunction::KeyDerivationFunction |
( |
const SecurityProtocol & |
pSecurityProtocol | ) |
|
|
explicit |
Creates a new instance with derivation function algorithm determined by parameter.
- Parameter
-
| pSecurityProtocol | will determine the key derivation algorithm to use. E.g. a PACE protocol of id_PACE::DH::GM_AES_CBC_CMAC_128 will result in SHA256 to be used internally to derive keys. |
◆ ~KeyDerivationFunction()
| governikus::KeyDerivationFunction::~KeyDerivationFunction |
( |
| ) |
|
|
default |
◆ enc()
| QByteArray KeyDerivationFunction::enc |
( |
const QByteArray & |
pSecret, |
|
|
const QByteArray & |
pNonce = QByteArray() |
|
) |
| const |
Derive the encryption key.
- Parameter
-
| pSecret | the secret to use. |
- Rückgabe
- the encryption key
◆ isInitialized()
| bool KeyDerivationFunction::isInitialized |
( |
| ) |
const |
Returns true, if initialization succeeded, i.e.
the algorithm is known, supported and the key bytes have correct size.
◆ mac()
| QByteArray KeyDerivationFunction::mac |
( |
const QByteArray & |
pSecret, |
|
|
const QByteArray & |
pNonce = QByteArray() |
|
) |
| const |
Derive the MAC key.
- Parameter
-
| pSecret | the secret to use. |
- Rückgabe
- the MAC key
◆ pi()
| QByteArray KeyDerivationFunction::pi |
( |
const QByteArray & |
pSecret | ) |
const |
Derive the password key.
- Parameter
-
| pSecret | the secret to use. |
- Rückgabe
- the password key
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: