EcdhEs class
A class for ECDH-ES key derivation
This class provides methods to derive shared keys for anonymous encryption and to perform direct encryption and decryption using the derived keys.
Constructors
Properties
Methods
-
decryptDirect(
{required KeyAlgorithm encryptionAlgorithm, required Key recipientKey, required Uint8List ciphertext, required Key ephemeralKey, required Uint8List nonce, required Uint8List tag, Uint8List? aad}) → Uint8List - Decrypts a message directly using the derived key.
-
deriveKey(
{required KeyAlgorithm encryptionAlgorithm, required Key ephemeralKey, required Key recipientKey, required bool receive}) → Key - Derives an ECDH-ES shared key for anonymous encryption.
-
encryptDirect(
{required KeyAlgorithm encryptionAlgorithm, required Key recipientKey, required Key ephemeralKey, required Uint8List message, Uint8List? aad, Uint8List? nonce}) → EncryptedBuffer - Encrypts a message directly using the derived key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
receiverUnwrapKey(
{required KeyAlgorithm keyWrappingAlgorithm, required KeyAlgorithm encryptionAlgorithm, required Key ephemeralKey, required Key recipientKey, required Uint8List ciphertext, Uint8List? nonce, Uint8List? tag}) → Key - Unwraps a key for the receiver using the derived key.
-
senderWrapKey(
{required KeyAlgorithm keyWrappingAlgorithm, required Key ephemeralKey, required Key recipientKey, required Key cek}) → EncryptedBuffer - Wraps a key for the sender using the derived key.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited