Ecdh1PU class

A class for ECDH-1PU key derivation

This class provides methods to derive shared keys for authenticated encryption and to perform direct encryption and decryption using the derived keys.

Constructors

Ecdh1PU({required Uint8List algId, required Uint8List apu, required Uint8List apv})
Constructs an instance of Ecdh1PU.

Properties

algId Uint8List
final
apu Uint8List
final
apv Uint8List
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decryptDirect({required KeyAlgorithm encryptionAlgorithm, required Key recipientKey, required Key ephemeralKey, required Key senderKey, required Uint8List ciphertext, 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 senderKey, required Key recipientKey, required bool receive, Uint8List? ccTag}) Key
Derives an ECDH-1PU shared key for authenticated encryption.
encryptDirect({required KeyAlgorithm encryptionAlgorithm, required Key recipientKey, required Key ephemeralKey, required Key senderKey, 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 recipientKey, required Key ephemeralKey, required Key senderKey, required Uint8List ciphertext, Uint8List? nonce, Uint8List? tag, required Uint8List ccTag}) Key
Unwraps a key for the receiver using the derived key.
senderWrapKey({required KeyAlgorithm keyWrappingAlgorithm, required Key ephemeralKey, required Key recipientKey, required Key senderKey, required Key cek, required Uint8List ccTag}) 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