summaryrefslogtreecommitdiff
path: root/chromium/device/fido/authenticator_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/device/fido/authenticator_data.h')
-rw-r--r--chromium/device/fido/authenticator_data.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/chromium/device/fido/authenticator_data.h b/chromium/device/fido/authenticator_data.h
index 3f4f440ab5a..8a80e3d1c81 100644
--- a/chromium/device/fido/authenticator_data.h
+++ b/chromium/device/fido/authenticator_data.h
@@ -38,14 +38,22 @@ class COMPONENT_EXPORT(DEVICE_FIDO) AuthenticatorData {
// The attested credential |data| must be specified iff |flags| have
// kAttestation set; and |extensions| must be specified iff |flags| have
// kExtensionDataIncluded set.
+ AuthenticatorData(base::span<const uint8_t, kRpIdHashLength> rp_id_hash,
+ uint8_t flags,
+ base::span<const uint8_t, kSignCounterLength> sign_counter,
+ base::Optional<AttestedCredentialData> data,
+ base::Optional<cbor::Value> extensions = base::nullopt);
+
+ // Creates an AuthenticatorData with flags and signature counter encoded
+ // according to the supplied arguments.
AuthenticatorData(
- base::span<const uint8_t, kRpIdHashLength> application_parameter,
- uint8_t flags,
- base::span<const uint8_t, kSignCounterLength> counter,
- base::Optional<AttestedCredentialData> data,
- base::Optional<cbor::Value> extensions = base::nullopt);
+ base::span<const uint8_t, kRpIdHashLength> rp_id_hash,
+ bool user_present,
+ bool user_verified,
+ uint32_t sign_counter,
+ base::Optional<AttestedCredentialData> attested_credential_data,
+ base::Optional<cbor::Value> extensions);
- // Moveable.
AuthenticatorData(AuthenticatorData&& other);
AuthenticatorData& operator=(AuthenticatorData&& other);