Class: Roqs::KEMPublicKey
- Inherits:
-
Object
- Object
- Roqs::KEMPublicKey
- Defined in:
- lib/roqs/kem_public_key.rb
Instance Method Summary collapse
- #bytes ⇒ Object
-
#initialize(nativePubKey) ⇒ KEMPublicKey
constructor
A new instance of KEMPublicKey.
- #length ⇒ Object
- #native_pubkey ⇒ Object
Constructor Details
#initialize(nativePubKey) ⇒ KEMPublicKey
Returns a new instance of KEMPublicKey.
9 10 11 |
# File 'lib/roqs/kem_public_key.rb', line 9 def initialize(nativePubKey) @native_pubkey = nativePubKey end |
Instance Method Details
#bytes ⇒ Object
17 18 19 20 21 |
# File 'lib/roqs/kem_public_key.rb', line 17 def bytes #puts "raw 1 : #{@native_pubkey.size}" #puts "raw 2 : #{@native_pubkey.to_str}" @native_pubkey.to_str end |
#length ⇒ Object
13 14 15 |
# File 'lib/roqs/kem_public_key.rb', line 13 def length @native_pubkey.size end |
#native_pubkey ⇒ Object
23 24 25 |
# File 'lib/roqs/kem_public_key.rb', line 23 def native_pubkey @native_pubkey end |