ManageSE
public struct ManageSE
Use case Manage Security Environment - gemSpec_COS#14.9.9
-
Change/Set the Security Environment - gemSpec_COS#14.9.9.1
Declaration
Swift
public static func setEnvironment(number: Int) throws -> HealthCardCommandParameters
numberSE identifier 1, 4
Return Value
Set environment command
-
Select internal key for symmetric authentication - gemSpec_COS#14.9.9.2
Declaration
Swift
public static func selectInternal(symmetricKey: Key, dfSpecific: Bool, algorithm: PSOAlgorithm) throws -> HealthCardCommandParameters
symmetricKeyThe key reference
dfSpecificWhether the key is dfSpecific or global
algorithmselect the algorithm to be used for the internal authentication (N100.300)
Return Value
The select key command
-
Select internal key for asymmetric authentication - gemSpec_COS#14.9.9.3
Declaration
Swift
public static func selectInternal(asymmetricKey: Key, dfSpecific: Bool, algorithm: PSOAlgorithm) throws -> HealthCardCommandParameters
asymmetricKeyThe key reference
dfSpecificWhether the key is dfSpecific or global
algorithmselect the algorithm to be used for the internal authentication (N100.800)
Return Value
The select key command
-
Select external key for symmetric authentication - gemSpec_COS#14.9.9.4
Declaration
Swift
public static func selectExternal(symmetricKey: Key, dfSpecific: Bool, algorithm: PSOAlgorithm) throws -> HealthCardCommandParameters
symmetricKeyThe key reference
dfSpecificWhether the key is dfSpecific or global
algorithmselect the algorithm to be used for the internal authentication (N101.300)
Return Value
The select key command
-
Select external key for asymmetric authentication - gemSpec_COS#14.9.9.5
Declaration
Swift
public static func selectExternal(referenceKey: Data, algorithm: PSOAlgorithm) throws -> HealthCardCommandParameters
referenceKeyThe key identifier. Must be 12 bytes long (E.g. GemCvCertificate.CVCBody.certificateHolderReference) (N101.700)
dfSpecificWhether the key is dfSpecific or global
algorithmselect the algorithm to be used for the internal authentication (N101.800)
Return Value
The select key command
-
Select symmetric key for mutual authentication - gemSpec_COS#14.9.9.6
Declaration
Swift
public static func selectMutual(symmetricKey: Key, dfSpecific: Bool, algorithm: PSOAlgorithm) throws -> HealthCardCommandParameters
symmetricKeyThe key identifier. (N102.200)
dfSpecificWhether the key is dfSpecific or global
algorithmselect the algorithm to be used for the internal authentication (N102.300)
Return Value
The select key command
-
Select symmetric key for PACE authentication without specifying the curve - gemSpec_COS#14.9.9.7
Declaration
Swift
public static func selectPACE(symmetricKey: Key, dfSpecific: Bool, oid: ASN1Kit.ObjectIdentifier) throws -> HealthCardCommandParameters
symmetricKeyThe key Identifier
dfSpecificWhether the key is dfSpecific or global
oidPACE identifier (N102.440)
Return Value
The select key command
-
Domain Id parameter = gemSpec_COS#14.9.9.8 N102.454
See moreDeclaration
Swift
public enum DomainId : UInt8 -
Select symmetric key for PACE authentication with domain - gemSpec_COS#14.9.9.8
Declaration
Swift
public static func selectPACE( symmetricKey: Key, dfSpecific: Bool, oid: ASN1Kit.ObjectIdentifier, domain: DomainId ) throws -> HealthCardCommandParameters
symmetricKeyThe key Identifier
dfSpecificWhether the key is dfSpecific or global
oidPACE identifier (N102.440)
domainspecify the elliptic curve to use
Return Value
The select key command
-
Select signing key for signing - gemSpec_COS#14.9.9.9
Declaration
Swift
public static func selectSigning(key: Key, dfSpecific: Bool, algorithm: PSOAlgorithm) throws -> HealthCardCommandParameters
keyThe key Identifier (N102.700)
dfSpecificWhether the key is dfSpecific or global
algorithmselect the algorithm to be used for signing operations (N102.800)
Return Value
The select key command
-
Select CVC key - gemSpec_COS#14.9.9.10
Declaration
Swift
public static func selectCVC(referenceKey: Data) throws -> HealthCardCommandParameters
referenceKeyThe key identifier. Must be 8 bytes long (E.g. GemCvCertificate.CVCBody.certificateAuthorityReference) (N103.200)
Return Value
The select key command
-
Select decipher key for decrypting - gemSpec_COS#14.9.9.11
Declaration
Swift
public static func selectDecipher(key: Key, dfSpecific: Bool, algorithm: PSOAlgorithm) throws -> HealthCardCommandParameters
keyThe key Identifier (N103.600)
dfSpecificWhether the key is dfSpecific or global
algorithmselect the algorithm to be used for decipher operations (N103.700)
Return Value
The select decipher key command
-
Select encipher key for encrypting - gemSpec_COS#14.9.9.12
Declaration
Swift
public static func selectEncipher(key: Data, algorithm: PSOAlgorithm) throws -> HealthCardCommandParameters
keyThe key identifier. Must be 12 bytes long (E.g. GemCvCertificate.CVCBody.certificateHolderReference) (N103.840)
algorithmselect the algorithm to be used for encipher operations (N103.845)
Return Value
The select encipher key command