class

SNMP::V3::Security::AES

Inherits Reference / Object

Constructors

new(priv_key : Bytes, local : UInt64 = Random::Secure.rand(18446744073709551615_u64))

@local seeds the per-message salt counter; use a CSPRNG so the initial salt (and thus the AES IV sequence) is not predictable across processes.

Source

Instance methods

decrypt(encrypted_data : Bytes, salt : Bytes, engine_boots, engine_time)
Source
encrypt(decrypted_data : Bytes, engine_boots, engine_time)
Source