PsoDSA
public struct PsoDSA
Builder representing Compute Digital Signature in gemSpec_COS#14.8.2 And Verify Digital Signature in gemSpec_COS#14.8.9
-
Use case compute a digital signature without
message recovery
Declaration
Swift
public static func sign(_ data: Data) throws -> HealthCardCommandParameters
datathe value to sign
Return Value
PSO Compute Digital Signature Command
-
Use case verify an ELC signature gemSpec_COS#14.8.9.1
Note
that (only) ansix9p256r1, ansix9p384r1 curves are supportedThrows
HealthCardCommandBuilder.InvalidArgumentorECCurveInfo.InvalidArgumentwhen wrong signature, hash or SecKey is passedDeclaration
Swift
public static func verify(signature: Data, hash: Data, publicKey: SecKey) throws -> HealthCardCommandParameters
signature(normalized) signature hash to verify
hashthe signed hash value
publicKeya Public SecKey
Return Value
Verify EC DSA command