Class: JWE::Alg::Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/jwe/alg/dir.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ Dir

Returns a new instance of Dir.



6
7
8
# File 'lib/jwe/alg/dir.rb', line 6

def initialize(key)
  self.key = key
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



4
5
6
# File 'lib/jwe/alg/dir.rb', line 4

def key
  @key
end

Instance Method Details

#decrypt(encrypted_cek) ⇒ Object



14
15
16
# File 'lib/jwe/alg/dir.rb', line 14

def decrypt(encrypted_cek)
  key
end

#encrypt(cek) ⇒ Object



10
11
12
# File 'lib/jwe/alg/dir.rb', line 10

def encrypt(cek)
  ''
end