1- .\" Copyright (c) 2018-2024 Yubico AB. All rights reserved.
1+ .\" Copyright (c) 2018-2025 Yubico AB. All rights reserved.
22.\"
33.\" Redistribution and use in source and binary forms, with or without
44.\" modification, are permitted provided that the following conditions are
4343.Nm fido_cred_set_entattest ,
4444.Nm fido_cred_set_extensions ,
4545.Nm fido_cred_set_blob ,
46+ .Nm fido_cred_set_hmac_salt ,
4647.Nm fido_cred_set_pin_minlen ,
4748.Nm fido_cred_set_prot ,
4849.Nm fido_cred_set_rk ,
@@ -270,6 +271,7 @@ At the moment, only the
270271.Dv FIDO_EXT_CRED_BLOB ,
271272.Dv FIDO_EXT_CRED_PROTECT ,
272273.Dv FIDO_EXT_HMAC_SECRET ,
274+ .Dv FIDO_EXT_HMAC_SECRET_MC ,
273275.Dv FIDO_EXT_MINPINLEN ,
274276and
275277.Dv FIDO_EXT_LARGEBLOB_KEY
@@ -293,6 +295,31 @@ which must be
293295bytes long.
294296.Pp
295297The
298+ .Fn fido_cred_set_hmac_salt
299+ and
300+ .Fn fido_cred_set_hmac_secret
301+ functions set the hmac-salt and hmac-secret parts of
302+ .Fa cred
303+ to
304+ .Fa ptr ,
305+ where
306+ .Fa ptr
307+ points to
308+ .Fa len
309+ bytes.
310+ A copy of
311+ .Fa ptr
312+ is made and no references to the passed pointer are kept.
313+ The HMAC secret MakeCredential
314+ .Pq hmac-secret-mc
315+ extension is a CTAP 2.2 extension.
316+ Note that the resulting hmac-secret varies according to whether user
317+ verification was performed by the authenticator.
318+ The
319+ .Fn fido_cred_set_hmac_secret
320+ function is normally only useful when writing tests.
321+ .Pp
322+ The
296323.Fn fido_cred_set_pin_minlen
297324function enables the CTAP 2.1
298325.Dv FIDO_EXT_MINPINLEN
0 commit comments