lib/miscreant.rb in miscreant-0.1.0 vs lib/miscreant.rb in miscreant-0.2.0
- old
+ new
@@ -1,16 +1,24 @@
+# encoding: binary
# frozen_string_literal: true
require "openssl"
require "securerandom"
require "miscreant/version"
+require "miscreant/aead"
+require "miscreant/aes/cmac"
+require "miscreant/aes/pmac"
+require "miscreant/aes/siv"
require "miscreant/internals"
# Miscreant: A misuse-resistant symmetric encryption library
module Miscreant
# Parent of all cryptography-related errors
CryptoError = Class.new(StandardError)
# Ciphertext failed to verify as authentic
IntegrityError = Class.new(CryptoError)
+
+ # Hide internals from the outside world
+ private_constant :Internals
end