We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9a283f commit 192e272Copy full SHA for 192e272
BitwardenShared/Core/Auth/Services/DevicePasskeyService.swift
@@ -367,6 +367,11 @@ private func createAttestationObject(
367
private func generatePrf(using prfInput: Data, from seed: SymmetricKey) -> Data {
368
let saltPrefix = "WebAuthn PRF\0".data(using: .utf8)!
369
let salt1 = saltPrefix + prfInput
370
+ let logger = Logger()
371
+ seed.withUnsafeBytes{
372
+ let seedBytes = Data(Array($0))
373
+ logger.debug("PRF Input: \(salt1.base64EncodedString())\nPRF Seed: \(seedBytes.base64UrlEncodedString())")
374
+ }
375
// CTAP2 uses HMAC to expand salt into a PRF, so we're doing the same.
376
return Data(HMAC<SHA256>.authenticationCode(for: salt1, using: seed))
377
}
0 commit comments