PsoDecipher
public struct PsoDecipher
Builders representing Decipher command in gemSpec_COS#14.8.3
-
Use case Decipher using RSA gemSpec_COS#14.8.3.1
Declaration
Swift
public static func decipherUsingRsa(cryptogram: Data) throws -> HealthCardCommand
Parameters
cryptogram
number of octets must be identical to OctetLength(n), n being the modulus of the key
-
Use case Decipher using ELC gemSpec_COS#14.8.3.2
Declaration
Swift
public static func decipherUsingElc(cryptogram: Data) throws -> HealthCardCommand
Parameters
cryptogram
specified as in gemSpec_COS#N090.300
-
Use case Decipher using a symmetric key gemSpec_COS#14.8.3.3
Declaration
Swift
public static func decipherUsingSymmetricKey(cryptogram: Data) throws -> HealthCardCommand
Parameters
cryptogram
number of octets must be a multiple of the block length of the used algorithm