Class SmartCardHSMKey
Class implementing key access
Defined in: SmartCardHSM.js.
Constructor Attributes | Constructor Name and Description |
---|---|
SmartCardHSMKey(sc, id)
Create a key access object
|
Method Attributes | Method Name and Description |
---|---|
decrypt(mech, data)
Decrypt data using a key in the SmartCard-HSM
|
|
getId()
Return the key identifier
|
|
getLabel()
Return the key label as encoded in the PKCS#15 structure
|
|
Return the key id as encoded in the PKCS#15 structure
|
|
getSize()
Return the key size in bits
|
|
getType()
Return the key size in bits
|
|
setDescription(desc)
Set the PKCS#15 private key description
|
|
sign(mech, data)
Sign data using a key in the SmartCard-HSM
|
|
toString()
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