Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

SmartCard.PerformSignature

Performs signature.

Component Version macOS Windows Linux Server iOS SDK
SmartCard 7.0 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No
MBS( "SmartCard.PerformSignature"; SmartCardContext; DeviceType; Hash { ; ReturnType } )   More

Parameters

Parameter Description Example Flags
SmartCardContext The smartcard context reference number. $SmartCardContext
DeviceType Which device to handle, so the plugin talks the right dialect.
Currently supported cardos and acos.
"cardos"
Hash The input hash to sign.
Length should be 40 hex characters, so it's decoded 20 bytes.
"0011223344556677889900112233445566778899"
ReturnType What format to return the certificate.
Can be Hex or Base64. Default is hex.
"Hex" Optional

Result

Returns result or error.

Description

Performs signature.
Convenience function which wraps a few calls to Transmit function.

With plugin version 7.1 the length of hash is variable.

This is function for atos Smartcards CardOS v5.0/5.3, which we needed for point of sales software in Austria. It may not work with your cards unless they have same protocol.

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 18th January 2017, last changed 17th June 2018


SmartCard.ListReaders - SmartCard.ReadCertificate