Class: Stribog::Compression
- Inherits:
-
Object
- Object
- Stribog::Compression
- Includes:
- HashParams
- Defined in:
- lib/stribog/compression.rb
Overview
Compression
Constant Summary
Constants included from HashParams
HashParams::CONSTANTS_C, HashParams::MATRIX_A, HashParams::PI, HashParams::T
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(n, message, hash_vector) ⇒ Compression
constructor
A new instance of Compression.
Constructor Details
#initialize(n, message, hash_vector) ⇒ Compression
Returns a new instance of Compression.
10 11 12 13 14 |
# File 'lib/stribog/compression.rb', line 10 def initialize(n, , hash_vector) @n = n = @hash_vector = hash_vector end |
Instance Method Details
#call ⇒ Object
16 17 18 19 20 21 |
# File 'lib/stribog/compression.rb', line 16 def call vector = lpsx_func @n, @hash_vector vector = func_e vector, vector = vector ^ @hash_vector vector ^ end |