Class: Ksef::Crypto::Encryptor::Sealed
- Inherits:
-
Data
- Object
- Data
- Ksef::Crypto::Encryptor::Sealed
- Defined in:
- lib/ksef/crypto/encryptor.rb
Overview
What #seal produces: the ciphertext to send, plus the integrity metadata for both forms of the document. Bundled together because §11.1 requires the hash and size of the plaintext and of the ciphertext, and hashing the wrong one of the two is a silent error that only the server can detect.
Instance Attribute Summary collapse
-
#ciphertext ⇒ Object
readonly
Returns the value of attribute ciphertext.
-
#ciphertext_digest ⇒ Object
readonly
Returns the value of attribute ciphertext_digest.
-
#plaintext_digest ⇒ Object
readonly
Returns the value of attribute plaintext_digest.
Instance Method Summary collapse
-
#content ⇒ String
Base64 ciphertext, the wire form.
Instance Attribute Details
#ciphertext ⇒ Object (readonly)
Returns the value of attribute ciphertext
29 30 31 |
# File 'lib/ksef/crypto/encryptor.rb', line 29 def ciphertext @ciphertext end |
#ciphertext_digest ⇒ Object (readonly)
Returns the value of attribute ciphertext_digest
29 30 31 |
# File 'lib/ksef/crypto/encryptor.rb', line 29 def ciphertext_digest @ciphertext_digest end |
#plaintext_digest ⇒ Object (readonly)
Returns the value of attribute plaintext_digest
29 30 31 |
# File 'lib/ksef/crypto/encryptor.rb', line 29 def plaintext_digest @plaintext_digest end |