Class: ToyOre::Scheme::OreCiphertext

Inherits:
Object
  • Object
show all
Defined in:
lib/toy_ore/scheme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset, key, iv, encryptions) ⇒ OreCiphertext

Returns a new instance of OreCiphertext.



108
109
110
111
# File 'lib/toy_ore/scheme.rb', line 108

def initialize(offset, key, iv, encryptions)
  @left = LeftCiphertext.new(offset, key)
  @right = RightCiphertext.new(iv, encryptions)
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



106
107
108
# File 'lib/toy_ore/scheme.rb', line 106

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



106
107
108
# File 'lib/toy_ore/scheme.rb', line 106

def right
  @right
end