Class: WSS4R::Security::Crypto::AES128SymmetricEncrypter
- Inherits:
-
AESSymmetricEncrypter
- Object
- SymmetricEncrypter
- AESSymmetricEncrypter
- WSS4R::Security::Crypto::AES128SymmetricEncrypter
- Defined in:
- lib/wss4r/security/crypto/cipher.rb
Instance Method Summary collapse
- #algorithm ⇒ Object
- #cipher_name ⇒ Object
-
#initialize(key = nil, iv = nil) ⇒ AES128SymmetricEncrypter
constructor
A new instance of AES128SymmetricEncrypter.
Methods inherited from AESSymmetricEncrypter
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
#algorithm ⇒ Object
134 135 136 |
# File 'lib/wss4r/security/crypto/cipher.rb', line 134 def algorithm() Types::ALGORITHM_AES128_CBC end |
#cipher_name ⇒ Object
138 139 140 |
# File 'lib/wss4r/security/crypto/cipher.rb', line 138 def cipher_name() "AES-128-CBC" end |