Class: Evervault::Crypto::CurveBase
- Inherits:
-
Object
- Object
- Evervault::Crypto::CurveBase
- Defined in:
- lib/evervault/crypto/curves/base.rb
Direct Known Subclasses
Evervault::Crypto::Curves::Koblitz, Evervault::Crypto::Curves::P256
Instance Method Summary collapse
- #encode(decompressed_key:) ⇒ Object
-
#initialize(curve_name:, curve_values:) ⇒ CurveBase
constructor
A new instance of CurveBase.
Constructor Details
#initialize(curve_name:, curve_values:) ⇒ CurveBase
Returns a new instance of CurveBase.
8 9 10 |
# File 'lib/evervault/crypto/curves/base.rb', line 8 def initialize(curve_name:, curve_values:) @asn1Encoder = buildEncoder(curve_values: curve_values) end |
Instance Method Details
#encode(decompressed_key:) ⇒ Object
12 13 14 |
# File 'lib/evervault/crypto/curves/base.rb', line 12 def encode(decompressed_key:) @asn1Encoder.call(decompressed_key) end |