Function decryptWithPrivateKey

  • Asymmetric public key decryption also known as ECIES.

    Under ECDH-SS, the cipher text should have the following format: iv<24> || cipherText || mac<16>

    Under ECDH-ES and ECDH-EE, the cipher text should have the following format: publicKey<32> || cihperText || mac<16>

    The returned buffers are guaranteed to unpooled. This means the underlying ArrayBuffer is safely transferrable.

    Parameters

    Returns Buffer | undefined

Generated using TypeDoc