2020-03-04 07:14:38 +00:00
|
|
|
import Foundation
|
|
|
|
import Combine
|
2022-01-02 00:43:29 +00:00
|
|
|
import SecretKit
|
2020-03-04 07:14:38 +00:00
|
|
|
|
|
|
|
extension SmartCard {
|
|
|
|
|
2022-01-02 02:45:03 +00:00
|
|
|
/// An implementation of Secret backed by a Smart Card.
|
2020-03-04 07:14:38 +00:00
|
|
|
public struct Secret: SecretKit.Secret {
|
|
|
|
|
|
|
|
public let id: Data
|
|
|
|
public let name: String
|
2020-03-09 05:17:59 +00:00
|
|
|
public let algorithm: Algorithm
|
|
|
|
public let keySize: Int
|
2022-02-25 06:59:35 +00:00
|
|
|
public let requiresAuthentication: Bool = false
|
2020-03-04 07:14:38 +00:00
|
|
|
public let publicKey: Data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|