Skip to content

Commit

Permalink
Rename method.
Browse files Browse the repository at this point in the history
  • Loading branch information
yspreen committed Apr 20, 2021
1 parent b783c6c commit a15d385
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PatientScannerDemo/Services/COSE.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct COSE {
}
return Signature.verify(s, for: d, with: key)
}
public static func verify(_ cbor: SwiftCBOR.CBOR, with rsa: String) -> Bool {
public static func verify(_ cbor: SwiftCBOR.CBOR, with derPubKeyB64: String) -> Bool {
let COSE_TAG = UInt64(18)

guard
Expand All @@ -74,7 +74,7 @@ struct COSE {
)
let d = Data(signedPayload)
let s = Data(signature)
guard let key = X509.pubKey(from: rsa) else {
guard let key = X509.pubKey(from: derPubKeyB64) else {
return false
}
return Signature.verify(s, for: d, with: key)
Expand Down

0 comments on commit a15d385

Please sign in to comment.