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 -> HealthCardCommand
Parameters
data
the 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.InvalidArgument
orECCurveInfo.InvalidArgument
when wrong signature, hash or SecKey is passedDeclaration
Swift
public static func verify(signature: Data, hash: Data, publicKey: SecKey) throws -> HealthCardCommand
Parameters
signature
(normalized) signature hash to verify
hash
the signed hash value
publicKey
a Public SecKey
Return Value
Verify EC DSA command