Class: HPKE::ContextR
- Inherits:
-
Context
- Object
- Context
- HPKE::ContextR
- Defined in:
- lib/hpke.rb
Instance Method Summary collapse
Instance Method Details
#open(aad, ct) ⇒ Object
313 314 315 316 317 318 319 320 |
# File 'lib/hpke.rb', line 313 def open(aad, ct) raise Exception.new('AEAD is export only') if @hpke.aead_id == HPKE::EXPORT_ONLY pt = @hpke.aead_decrypt(@key, compute_nonce(@sequence_number), aad, ct) # TODO: catch openerror then send out own openerror increment_seq pt end |