Class: CryptoSuite_ECDSA_AES

CryptoSuite_ECDSA_AES

The module:api.CryptoSuite implementation for ECDSA, and AES algorithms using software key generation. This class implements a software-based key generation (as opposed to Hardware Security Module based key management)

new CryptoSuite_ECDSA_AES(keySize, hash)

constructor
Parameters:
Name Type Description
keySize number Key size for the ECDSA algorithm, can only be 256 or 384
hash string Optional. Hash algorithm, supported values are "SHA2" and "SHA3"

Extends

  • module:api.CryptoSuite

Methods


createKeyFromRaw()

This is an implementation of module:api.CryptoSuite#createKeyFromRaw

decrypt()

This is an implementation of module:api.CryptoSuite#decrypt To be implemented.

deriveKey()

This is an implementation of module:api.CryptoSuite#deriveKey To be implemented

encrypt()

This is an implementation of module:api.CryptoSuite#encrypt To be implemented.

getKeySize()

This is an implementation of module:api.CryptoSuite#getKeySize

hash()

This is an implementation of module:api.CryptoSuite#hash The opts argument is not supported.

<async> importKey()

This is an implementation of module:api.CryptoSuite#importKey Attempt to import the raw content, assuming it's one of the following: X.509v1/v3 PEM certificate (RSA/DSA/ECC) PKCS#8 PEM RSA/DSA/ECC public key PKCS#5 plain PEM DSA/RSA private key PKCS#8 plain PEM RSA/ECDSA private key

setCryptoKeyStore(cryptoKeyStore)

Set the cryptoKeyStore. When the application needs to use a key store other than the default, it should use the Client newCryptoKeyStore to create an instance and use this function to set the instance on the CryptoSuite.
Parameters:
Name Type Description
cryptoKeyStore CryptoKeyStore The cryptoKeyStore.

sign()

This is an implementation of module:api.CryptoSuite#sign Signs digest using key.