Build with Xcode 13 (#226)

This commit is contained in:
Max Goedjen
2021-09-22 21:10:04 -07:00
committed by GitHub
parent 9d6bbd2a04
commit 3f04126d00
5 changed files with 9 additions and 8 deletions

View File

@@ -50,7 +50,7 @@ extension Stub {
public func sign(data: Data, with secret: Secret, for provenance: SigningRequestProvenance) throws -> Data {
guard !shouldThrow else {
throw NSError()
throw NSError(domain: "test", code: 0, userInfo: nil)
}
let privateKey = SecKeyCreateWithData(secret.privateKey as CFData, [
kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,