Sha256: 2dfb405adfdfda7f3b9f9b56389dae9bdbd337c19ace96a28e2dee3f0a5176c1

Contents?: true

Size: 1.56 KB

Versions: 1

Compression:

Stored size: 1.56 KB

Contents

require 'active_support/all'
require 'active_model'
require 'xmlenc/version'
require 'openssl'
require 'base64'
require 'nokogiri'

module Xmlenc
  NAMESPACES = {
      :xenc => 'http://www.w3.org/2001/04/xmlenc#',
      :ds =>   'http://www.w3.org/2000/09/xmldsig#'
  }

  class Error < StandardError; end
  class UnsupportedError < Error; end
  class UnparseableMessage < Error; end
  class EncryptedDataNotFound < Error; end

  module Builder
    autoload :Base, 'xmlenc/builder/base'
    autoload :EncryptedData, 'xmlenc/builder/encrypted_data'
    autoload :EncryptionMethod, 'xmlenc/builder/encryption_method'
    autoload :EncryptedKey, 'xmlenc/builder/encrypted_key'
    autoload :KeyInfo, 'xmlenc/builder/key_info'
    autoload :CipherData, 'xmlenc/builder/cipher_data'
    autoload :DigestMethod, 'xmlenc/builder/digest_method'
    autoload :ReferenceList, 'xmlenc/builder/reference_list'
    autoload :DataReference, 'xmlenc/builder/data_reference'
    autoload :RetrievalMethod, 'xmlenc/builder/retrieval_method'

    module ComplexTypes
      autoload :EncryptedType, 'xmlenc/builder/complex_types/encrypted_type'
    end
  end

  module Algorithms
    autoload :RSA15, 'xmlenc/algorithms/rsa_15'
    autoload :RsaOaepMgf1p, 'xmlenc/algorithms/rsa_oaep_mgf1p'
    autoload :DES3CBC, 'xmlenc/algorithms/des3_cbc'
    autoload :AESCBC, 'xmlenc/algorithms/aes_cbc'
    autoload :AESGCM, 'xmlenc/algorithms/aes_gcm'
  end

  autoload :EncryptedDocument, 'xmlenc/encrypted_document'
  autoload :EncryptedData, 'xmlenc/encrypted_data'
  autoload :EncryptedKey, 'xmlenc/encrypted_key'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xmlenc-0.8.0 lib/xmlenc.rb