Class: WSS4R::Security::Crypto::AES128SymmetricEncrypter

Inherits:
AESSymmetricEncrypter show all
Defined in:
lib/wss4r/security/crypto/cipher.rb

Instance Method Summary collapse

Methods inherited from AESSymmetricEncrypter

#decrypt, #iv=

Methods inherited from SymmetricEncrypter

#decrypt, #encrypt_to_b64, #iv, #iv_b64, #key, #key=, #key_b64

Constructor Details

#initialize(key = nil, iv = nil) ⇒ AES128SymmetricEncrypter

Returns a new instance of AES128SymmetricEncrypter.



130
131
132
# File 'lib/wss4r/security/crypto/cipher.rb', line 130

def initialize(key = nil, iv = nil)
  super(key, iv)
end

Instance Method Details

#algorithmObject



134
135
136
# File 'lib/wss4r/security/crypto/cipher.rb', line 134

def algorithm()
  Types::ALGORITHM_AES128_CBC
end

#cipher_nameObject



138
139
140
# File 'lib/wss4r/security/crypto/cipher.rb', line 138

def cipher_name()
  "AES-128-CBC"
end