Class: Ccrypto::Ruby::X25519Engine
- Inherits:
-
Object
- Object
- Ccrypto::Ruby::X25519Engine
- Includes:
- TeLogger::TeLogHelper
- Defined in:
- lib/ccrypto/ruby/engines/x25519_engine.rb
Overview
X25519KeyBundle
Instance Method Summary collapse
- #generate_keypair(&block) ⇒ Object
-
#initialize(*args, &block) ⇒ X25519Engine
constructor
A new instance of X25519Engine.
Constructor Details
#initialize(*args, &block) ⇒ X25519Engine
Returns a new instance of X25519Engine.
52 53 54 55 |
# File 'lib/ccrypto/ruby/engines/x25519_engine.rb', line 52 def initialize(*args, &block) @config = args.first teLogger.debug "Config : #{@config}" end |
Instance Method Details
#generate_keypair(&block) ⇒ Object
57 58 59 60 |
# File 'lib/ccrypto/ruby/engines/x25519_engine.rb', line 57 def generate_keypair(&block) teLogger.debug "Generating X25519 keypair" X25519KeyBundle.new(X25519::Scalar.generate) end |