mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-08-26 23:20:57 +00:00
25 lines
566 B
Swift
25 lines
566 B
Swift
import Foundation
|
|
import SecretKit
|
|
|
|
extension SmartCard {
|
|
|
|
/// An implementation of Secret backed by a Smart Card.
|
|
public struct Secret: SecretKit.Secret {
|
|
|
|
public let id: Data
|
|
public let name: String
|
|
public let algorithm: Algorithm
|
|
public let keySize: Int
|
|
public let requiresAuthentication: Bool = false
|
|
public let publicKey: Data
|
|
public let capabilities: Set<KeyCapabilities>
|
|
|
|
public enum KeyCapabilities: Sendable {
|
|
case signature
|
|
case encryption
|
|
}
|
|
|
|
}
|
|
|
|
}
|