validate_yubikey_with_aead(hsm,
from_key,
aead,
key_handle)
|
|
Try to validate an OTP from a YubiKey using the AEAD that can decrypt
this YubiKey's internal secret, using the key_handle for the AEAD.
`from_key' is the modhex encoded string emitted when you press the
button on your YubiKey.
Will only return on succesfull validation. All failures will result in
an pyhsm.exception.YHSM_CommandFailed.
- Parameters:
hsm (pyhsm.YHSM) - The YHSM instance
from_key (string) - The OTP from a YubiKey (in modhex)
aead (YHSM_GeneratedAEAD or string) - AEAD containing the cryptographic key and permission flags
key_handle (integer or string) - The key handle that can decrypt the AEAD
- Returns: YHSM_ValidationResult
- validation response
|