Sha256: 0171ea227fdae0e1643cac0eb076a440954159cdfbdfb8afef790ae4de55963d

Contents?: true

Size: 792 Bytes

Versions: 3

Compression:

Stored size: 792 Bytes

Contents

# frozen_string_literal: true

require 'teLogger'
require 'toolrack'

require_relative "roqs/version"

module Roqs
  include TR::CondUtils

  # OQS_STATUS
  OQS_ERROR = -1
  OQS_SUCCESS = 0
  OQS_EXTERNAL_LIB_ERROR_OPENSSL = 50

  class Error < StandardError; end
  # Your code goes here...

  def self.logger(tag = nil, &block)
    @_logger = TeLogger::Tlogger.new if @_logger.nil?

    if block
      if not_empty?(tag)
        @_logger.with_tag(tag, &block)
      else
        @_logger.with_tag(@_logger.tag, &block)
      end
    elsif is_empty?(tag)
      @_logger.tag = :roqs
      @_logger
    else
      # no block but tag is given? hmm
      @_logger.tag = tag
      @_logger
    end
  end

end

require_relative "roqs/struct"
require_relative "roqs/kem"
require_relative "roqs/sig"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
roqs-0.1.2 lib/roqs.rb
roqs-0.1.1 lib/roqs.rb
roqs-0.1.0 lib/roqs.rb