Attempts to decrypt the ciphertext using the given secret key. Returns undefined
if
the decryption fails, likely from an HMAC verification failure.
Given an array of plaintext bytes, encrypts those bytes using the "hashed ElGamal" stream cipher, described in the ElectionGuard specification, in section 3. The nonce may be specified to make the encryption deterministic. Otherwise, it's selected at random.
Generated using TypeDoc
The ciphertext representation of an arbitrary byte-array, encrypted with an ElGamal public key.