class

SNMP::V3::Security::DES

Inherits Reference / Object

Constructors

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

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

Source

Instance methods

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