class Izokatu::Rbnacl::Decrypter
Abstract class for Rbnacl
decrypters
@abstract Subclasses are containing implementation of {#create_decrypter!}
Constants
- RBNACL_KEY_CLASSES
Classes of RbNaCl keys
Attributes
nonce[R]
@return [String] initialization vector for one-time use
Public Class Methods
new(encrypted_data:, nonce:)
click to toggle source
Initializing option for decryption
@param encrypted_data (encrypted_data
) @param nonce (nonce
)
@since 0.1.0
Calls superclass method
Izokatu::Decrypter::new
# File lib/izokatu/rbnacl/decrypter.rb, line 26 def initialize(encrypted_data:, nonce:) super(encrypted_data: encrypted_data) @nonce = nonce create_decrypter! end
Public Instance Methods
create_decrypter!()
click to toggle source
Creating decrypter instance
@raise RuntimeError
@since 0.1.0
# File lib/izokatu/rbnacl/decrypter.rb, line 37 def create_decrypter! raise 'Not implemented!' end