Class: Cryptoform::EncryptionBackends::Backend

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptoform/encryption_backends/backend.rb

Direct Known Subclasses

Lockbox

Instance Method Summary collapse

Constructor Details

#initialize(state_name, **params) ⇒ Backend

Returns a new instance of Backend.



4
5
6
7
# File 'lib/cryptoform/encryption_backends/backend.rb', line 4

def initialize(state_name, **params)
  @state_name = state_name
  @params = params
end

Instance Method Details

#decrypt(ciphertext) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/cryptoform/encryption_backends/backend.rb', line 9

def decrypt(ciphertext)
  raise NotImplementedError
end

#encrypt(object) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/cryptoform/encryption_backends/backend.rb', line 13

def encrypt(object)
  raise NotImplementedError
end

#generate_keyObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/cryptoform/encryption_backends/backend.rb', line 17

def generate_key
  raise NotImplementedError
end