2020-02-19 04:52:00 +00:00
|
|
|
import Foundation
|
|
|
|
import Combine
|
2022-01-02 00:43:29 +00:00
|
|
|
import SecretKit
|
2020-02-19 04:52:00 +00:00
|
|
|
|
|
|
|
extension SecureEnclave {
|
|
|
|
|
2022-01-02 02:39:21 +00:00
|
|
|
/// An implementation of Secret backed by the Secure Enclave.
|
2020-02-19 04:52:00 +00:00
|
|
|
public struct Secret: SecretKit.Secret {
|
|
|
|
|
2020-03-04 07:14:38 +00:00
|
|
|
public let id: Data
|
|
|
|
public let name: String
|
2020-03-09 05:17:59 +00:00
|
|
|
public let algorithm = Algorithm.ellipticCurve
|
|
|
|
public let keySize = 256
|
2022-02-25 06:59:35 +00:00
|
|
|
public let requiresAuthentication: Bool
|
2020-03-04 07:14:38 +00:00
|
|
|
public let publicKey: Data
|
2020-02-19 04:52:00 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|