Class: Stribog::Stage::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/stribog/stage/base.rb

Overview

Base

Author:

  • WildDima

Direct Known Subclasses

Compression, Final, Initial

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prev_stage, vector = Stribog.vector) ⇒ Base

Returns a new instance of Base.



20
21
22
23
# File 'lib/stribog/stage/base.rb', line 20

def initialize(prev_stage, vector = Stribog.vector)
  @prev_stage = prev_stage
  @vector = vector
end

Instance Attribute Details

#current_vectorObject

Returns the value of attribute current_vector.



18
19
20
# File 'lib/stribog/stage/base.rb', line 18

def current_vector
  @current_vector
end

#digest_lengthObject

Returns the value of attribute digest_length.



14
15
16
# File 'lib/stribog/stage/base.rb', line 14

def digest_length
  @digest_length
end

#hash_vectorObject

Returns the value of attribute hash_vector.



15
16
17
# File 'lib/stribog/stage/base.rb', line 15

def hash_vector
  @hash_vector
end

#message_headObject

Returns the value of attribute message_head.



17
18
19
# File 'lib/stribog/stage/base.rb', line 17

def message_head
  @message_head
end

#message_vectorObject

Returns the value of attribute message_vector.



16
17
18
# File 'lib/stribog/stage/base.rb', line 16

def message_vector
  @message_vector
end

#nObject

Returns the value of attribute n.



12
13
14
# File 'lib/stribog/stage/base.rb', line 12

def n
  @n
end

#prev_stageObject (readonly)

Returns the value of attribute prev_stage.



10
11
12
# File 'lib/stribog/stage/base.rb', line 10

def prev_stage
  @prev_stage
end

#sumObject

Returns the value of attribute sum.



13
14
15
# File 'lib/stribog/stage/base.rb', line 13

def sum
  @sum
end

#vectorObject (readonly)

Returns the value of attribute vector.



11
12
13
# File 'lib/stribog/stage/base.rb', line 11

def vector
  @vector
end

Instance Method Details

#callObject

Raises:

  • (NotImplementedYet)


25
26
27
# File 'lib/stribog/stage/base.rb', line 25

def call
  raise NotImplementedYet
end