Fix store

This commit is contained in:
Max Goedjen 2022-02-24 22:50:30 -08:00
parent e6b2c0130d
commit 7b17aa9e84
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ extension Stub {
print("Public Key OpenSSH: \(OpenSSHKeyWriter().openSSHString(secret: secret))")
}
public func sign(data: Data, with secret: Secret, for provenance: SigningRequestProvenance) throws -> SignedData {
public func sign(data: Data, with secret: Secret, for provenance: SigningRequestProvenance) throws -> Data {
guard !shouldThrow else {
throw NSError(domain: "test", code: 0, userInfo: nil)
}
@ -68,7 +68,7 @@ extension Stub {
default:
fatalError()
}
return SignedData(data: SecKeyCreateSignature(privateKey, signatureAlgorithm, data as CFData, nil)! as Data, requiredAuthentication: false)
return SecKeyCreateSignature(privateKey, signatureAlgorithm, data as CFData, nil)! as Data
}
public func persistAuthentication(secret: Stub.Secret, forDuration duration: TimeInterval) throws {