Class: ToyOre::Scheme::OreCiphertext
- Inherits:
-
Object
- Object
- ToyOre::Scheme::OreCiphertext
- Defined in:
- lib/toy_ore/scheme.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(offset, key, iv, encryptions) ⇒ OreCiphertext
constructor
A new instance of OreCiphertext.
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
#left ⇒ Object (readonly)
Returns the value of attribute left.
106 107 108 |
# File 'lib/toy_ore/scheme.rb', line 106 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
106 107 108 |
# File 'lib/toy_ore/scheme.rb', line 106 def right @right end |