Class SmartCardHSMCrypto
Object
|
+--SmartCardHSMCrypto
- class
SmartCardHSMCrypto
Wrapper to provide Crypto interface to SmartCard-HSM
Defined in smartcardhsm.js
|
Constructor Summary |
SmartCardHSMCrypto(<Crypto> crypto)
Create crypto object implementing access to the SmartCard-HSM
|
|
Method Summary |
ByteString
|
sign(<HSMKey> key, <Number> mech, <ByteString> message)
Sign a message using the defined mechanism and key
|
Boolean
|
verify(<Key> key, <Number> mech, <ByteString> message, <ByteString> signature)
Verify a message using the defined mechanism and key
|
crypto
Object crypto
SmartCardHSMCrypto
SmartCardHSMCrypto(<Crypto> crypto)
Create crypto object implementing access to the SmartCard-HSM
Parameters:
crypto - the backend crypto provider
sign
ByteString sign(<HSMKey> key, <Number> mech, <ByteString> message)
Sign a message using the defined mechanism and key
Parameters:
mech - the mechanism (e.g. Crypto.ECDSA)
message - the message to be signed
verify
Boolean verify(<Key> key, <Number> mech, <ByteString> message, <ByteString> signature)
Verify a message using the defined mechanism and key
Parameters:
mech - the mechanism (e.g. Crypto.ECDSA)
message - the message to be signed
signature - the signature to verify
Returns:
true if signature is valid
Documentation generated by
JSDoc on Tue Sep 3 22:29:45 2013