Sha256: 34231908e64d89bc9bd39f0b9e8aea397ed24efd0beada0e1bf2d62044670934

Contents?: true

Size: 929 Bytes

Versions: 1

Compression:

Stored size: 929 Bytes

Contents

# frozen_string_literal: true

require_relative "hensel_code/version"
require "prime"
require "openssl"

# Main classes definitions and loadings
module HenselCode
  class Error < StandardError; end
  class BadBitRangeForRandomPrime < StandardError; end
  class WrongHenselCodeInputType < StandardError; end
  class HenselCodesWithDifferentPrimes < StandardError; end
  class HenselCodesWithDifferentPrimesAndExponents < StandardError; end
  class HenselCodesWithDifferentExponents < StandardError; end
  class IncompatibleOperandTypes < StandardError; end

  autoload  :Tools,                           "hensel_code/tools"
  autoload  :TFPEVerifier,                    "hensel_code/tfpe_verifier"
  autoload  :TruncatedFinitePadicExpansion,   "hensel_code/truncated_finite_padic_expansion"

  # aliases for classes with long names
  TFPE = TruncatedFinitePadicExpansion
  HCWDPAE = HenselCodesWithDifferentPrimesAndExponents
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hensel_code-0.1.0 lib/hensel_code.rb