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, #inspect, #to_bytes, #to_pkcs8_der, #to_pkcs8_pem, #to_pqc_container_der, #to_pqc_container_pem
Constructor Details
This class inherits a constructor from PQCrypto::KEM::SecretKey
Instance Method Details
#decapsulate(ciphertext) ⇒ Object
81 82 83 84 85 |
# File 'lib/pq_crypto/hybrid_kem.rb', line 81 def decapsulate(ciphertext) PQCrypto.__send__(:native_hybrid_kem_decapsulate_expanded_object, String(ciphertext).b, ) rescue ArgumentError => e raise InvalidCiphertextError, e. end |
#wipe! ⇒ Object
87 88 89 90 |
# File 'lib/pq_crypto/hybrid_kem.rb', line 87 def wipe! @expanded_key = nil super end |