module Xml::Kit::Crypto

Constants

CIPHERS

Public Class Methods

cipher_for(algorithm, key) click to toggle source

@!visibility private

# File lib/xml/kit/crypto.rb, line 14
def self.cipher_for(algorithm, key)
  CIPHERS.find { |x| x.matches?(algorithm) }.new(algorithm, key)
end
cipher_registry(&block) click to toggle source
# File lib/xml/kit/crypto.rb, line 18
def self.cipher_registry(&block)
  BlockRegistry.new(&block)
end