Skip to content

Commit 2d95a7e

Browse files
committed
Fix format stuff
1 parent f6e3159 commit 2d95a7e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Sources/WebAuthn/Ceremonies/Shared/CredentialPublicKey.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ struct RSAPublicKeyData: PublicKey, Sendable {
185185
}
186186

187187
func verify(signature: some DataProtocol, data: some DataProtocol) throws {
188-
//throw WebAuthnError.unsupported
189188
let rsaSignature = _RSA.Signing.RSASignature(rawRepresentation: signature)
190189

191190
var rsaPadding: _RSA.Signing.Padding

Tests/WebAuthnTests/Utils/TestModels/TestECCKeyPair.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct TestECCKeyPair {
2323
xk1shW3jTkWmRWY3MSr+CumivsCLz0YR4OkIHm8SAxGomGYF1dO0skj4
2424
-----END PRIVATE KEY-----
2525
"""
26-
26+
2727
static let publicKeyPEM = """
2828
-----BEGIN PUBLIC KEY-----
2929
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEliG0CSKktS9RPBtmebjUj4EBmXLH
@@ -32,7 +32,7 @@ struct TestECCKeyPair {
3232
"""
3333
static let publicKeyXCoordinate = "9621b40922a4b52f513c1b6679b8d48f81019972c7f3c64d6c856de34e45a645".hexadecimal!
3434
static let publicKeyYCoordinate = "6637312afe0ae9a2bec08bcf4611e0e9081e6f120311a8986605d5d3b4b248f8".hexadecimal!
35-
35+
3636
static func signature(data: Data) throws -> P256.Signing.ECDSASignature {
3737
let privateKey = try P256.Signing.PrivateKey(pemRepresentation: privateKeyPEM)
3838
return try privateKey.signature(for: data)

0 commit comments

Comments
 (0)