def validate_yubikey_with_aead(hsm, from_key, aead, key_handle):

    from_key = pyhsm.util.input_validate_str(from_key, 'from_key', max_len = 48)
    nonce = aead.nonce
    aead = pyhsm.util.input_validate_aead(aead)
    key_handle = pyhsm.util.input_validate_key_handle(key_handle)

    public_id, otp = split_id_otp(from_key)

    public_id = modhex_decode(public_id)
    otp = modhex_decode(otp)

    if not nonce:
        nonce = public_id.decode('hex')

    return hsm.validate_aead_otp(nonce, otp.decode('hex'),
        key_handle, aead)
Given captured args and kwargs from the URLconf, saves something in
dataset/ETHPy150Open Yubico/python-pyhsm/pyhsm/yubikey.py/validate_yubikey_with_aead--crossover with--dataset/ETHPy150Open django/django-formtools/formtools/preview.py/FormPreview.parse_params