Sha256: ebf38bd9a69ceed701a43dba2d463dba59c271e205a1a503dd3aa13604715f58

Contents?: true

Size: 554 Bytes

Versions: 9

Compression:

Stored size: 554 Bytes

Contents

require 'rmega/crypto/aes_ecb'
require 'rmega/crypto/aes_cbc'
require 'rmega/crypto/aes_ctr'
require 'rmega/crypto/rsa'

module Rmega
  module Crypto
    include AesCbc
    include AesEcb
    include AesCtr
    include Rsa

    # Check if all the used ciphers are supported
    ciphers = OpenSSL::Cipher.ciphers.map(&:upcase)
    %w[AES-128-CBC AES-128-CTR AES-128-ECB].each do |name|
      next if ciphers.include?(name)
      warn "WARNING: Your Ruby is compiled with OpenSSL #{OpenSSL::VERSION} and does not support cipher #{name}."
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rmega-0.3.2 lib/rmega/crypto.rb
rmega-0.3.1 lib/rmega/crypto.rb
rmega-0.2.7 lib/rmega/crypto.rb
rmega-0.2.6 lib/rmega/crypto.rb
rmega-0.2.5 lib/rmega/crypto.rb
rmega-0.2.4 lib/rmega/crypto.rb
rmega-0.2.2 lib/rmega/crypto.rb
rmega-0.2.1 lib/rmega/crypto.rb
rmega-0.2.0 lib/rmega/crypto.rb