Class Index | File Index

Classes


Class SmartCardHSMKey

Class implementing key access
Defined in: SmartCardHSM.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
SmartCardHSMKey(sc, id)
Create a key access object
Method Summary
Method Attributes Method Name and Description
 
decrypt(mech, data)
Decrypt data using a key in the SmartCard-HSM
 
Return the key identifier
 
Return the key label as encoded in the PKCS#15 structure
 
Return the key id as encoded in the PKCS#15 structure
 
Return the key size in bits
 
Return the key size in bits
 
Set the PKCS#15 private key description
 
sign(mech, data)
Sign data using a key in the SmartCard-HSM
 
Return human readable string
Class Detail
SmartCardHSMKey(sc, id)
Create a key access object
Parameters:
{SmartCardHSM} sc
the card access object
{Number} id
the key identifier
Method Detail
{ByteString} decrypt(mech, data)
Decrypt data using a key in the SmartCard-HSM
Parameters:
{Number} mech
the decipher mechanism
{ByteString} data
to be deciphered
Returns:
the plain message

{Number} getId()
Return the key identifier
Returns:
the key identifier

{String} getLabel()
Return the key label as encoded in the PKCS#15 structure
Returns:
the key label

{ByteString} getPKCS15Id()
Return the key id as encoded in the PKCS#15 structure
Returns:
the key identifier

{Number} getSize()
Return the key size in bits
Returns:
the key size in bits

{Number} getType()
Return the key size in bits
Returns:
the key size in bits

setDescription(desc)
Set the PKCS#15 private key description
Parameters:
{ASN1} desc
the description

{ByteString} sign(mech, data)
Sign data using a key in the SmartCard-HSM
Parameters:
{Number} mech
the signing mechanism
{ByteString} data
to be signed
Returns:
the signature

toString()
Return human readable string

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Feb 16 2024 18:38:12 GMT+0100 (CET)