Class: PQCrypto::HybridKEM::SecretKey
- Inherits:
-
KEM::SecretKey
- Object
- KEM::SecretKey
- PQCrypto::HybridKEM::SecretKey
- Defined in:
- lib/pq_crypto/hybrid_kem.rb
Instance Attribute Summary
Attributes inherited from KEM::SecretKey
Instance Method Summary collapse
Methods inherited from KEM::SecretKey
#==, #hash, #initialize, #to_bytes, #to_pqc_container_der, #to_pqc_container_pem, #wipe!
Constructor Details
This class inherits a constructor from PQCrypto::KEM::SecretKey
Instance Method Details
#decapsulate(ciphertext) ⇒ Object
92 93 94 95 96 |
# File 'lib/pq_crypto/hybrid_kem.rb', line 92 def decapsulate(ciphertext) PQCrypto.__send__(:native_hybrid_kem_decapsulate, String(ciphertext).b, @bytes) rescue ArgumentError => e raise InvalidCiphertextError, e. end |