Class: Ronin::Support::Crypto::Cipher::AES128

Inherits:
AES show all
Defined in:
lib/ronin/support/crypto/cipher/aes128.rb

Overview

The AES128 cipher.

Since:

  • 1.0.0

Instance Attribute Summary

Attributes inherited from AES

#key_size, #mode

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Ronin::Support::Crypto::Cipher

#decrypt, #encrypt, #stream

Constructor Details

#initialize(hash: :md5, **kwargs) ⇒ AES128

Initializes the AES 128bit cipher.

Parameters:

Since:

  • 1.0.0



39
40
41
# File 'lib/ronin/support/crypto/cipher/aes128.rb', line 39

def initialize(hash: :md5, **kwargs)
  super(key_size: 128, hash: hash, **kwargs)
end

Class Method Details

.supportedArray<String>

The list of supported AES 128bit ciphers.

Returns:

  • (Array<String>)

    The list of supported AES 128bit cipher names.

Since:

  • 1.0.0



49
50
51
# File 'lib/ronin/support/crypto/cipher/aes128.rb', line 49

def self.supported
  super().grep(/^aes(?:-)?128/)
end