SymEncryptedSessionKeyPacket class final

Symmetric Key Encrypted Session Key (SKESK) Packet - Type 3 Author Nguyen Van Nguyen nguyennv1981@gmail.com

Inheritance

Constructors

SymEncryptedSessionKeyPacket.new(int version, S2kInterface s2k, Uint8List iv, Uint8List encrypted, {SymmetricAlgorithm symmetric = SymmetricAlgorithm.aes256, AeadAlgorithm? aead, SessionKeyInterface? sessionKey})
SymEncryptedSessionKeyPacket.encryptSessionKey(String password, {SymmetricAlgorithm symmetric = SymmetricAlgorithm.aes256, AeadAlgorithm? aead, SessionKeyInterface? sessionKey})
factory
SymEncryptedSessionKeyPacket.fromBytes(Uint8List bytes)
factory

Properties

aead → AeadAlgorithm?
final
data Uint8List
Get packet data
no setter
encrypted Uint8List
final
hashCode int
The hash code for this object.
no setterinherited
isDecrypted bool
no setter
iv Uint8List
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s2k → S2kInterface
final
sessionKey → SessionKeyInterface?
final
symmetric SymmetricAlgorithm
final
type PacketType
Get packet type
finalinherited
version int
final

Methods

decrypt(String password) SymEncryptedSessionKeyPacket
encode() Uint8List
Serialize packet to bytes
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited