Class: secretKey

sjcl.ecc.elGamal.secretKey

new secretKey()

elGamal secretKey
Source:

Extends

Methods

dh(pk) → {bitArray}

Diffie-Hellmann function
Parameters:
Name Type Description
pk elGamal.publicKey The Public Key to do Diffie-Hellmann with
Source:
Returns:
diffie-hellmann result for this key combination.
Type
bitArray

dhJavaEc(pk) → {bitArray}

Diffie-Hellmann function, compatible with Java generateSecret
Parameters:
Name Type Description
pk elGamal.publicKey The Public Key to do Diffie-Hellmann with
Source:
Returns:
undigested X value, diffie-hellmann result for this key combination, compatible with Java generateSecret().
Type
bitArray

get() → {bitArray}

get this keys exponent data
Inherited From:
Source:
Returns:
exponent
Type
bitArray

unkem(tag) → {bitArray}

UnKem function of elGamal Secret Key
Parameters:
Name Type Description
tag bitArray The Tag to decrypt.
Source:
Returns:
decrypted key.
Type
bitArray