Class: PQCrypto::Seal::Padding::Verification
- Inherits:
-
Struct
- Object
- Struct
- PQCrypto::Seal::Padding::Verification
- Defined in:
- lib/pq_crypto/seal/padding.rb
Instance Attribute Summary collapse
-
#content_bytes ⇒ Object
Returns the value of attribute content_bytes.
-
#envelope_bytes ⇒ Object
Returns the value of attribute envelope_bytes.
-
#header ⇒ Object
Returns the value of attribute header.
-
#metadata_bytes ⇒ Object
Returns the value of attribute metadata_bytes.
Instance Method Summary collapse
Instance Attribute Details
#content_bytes ⇒ Object
Returns the value of attribute content_bytes
6 7 8 |
# File 'lib/pq_crypto/seal/padding.rb', line 6 def content_bytes @content_bytes end |
#envelope_bytes ⇒ Object
Returns the value of attribute envelope_bytes
6 7 8 |
# File 'lib/pq_crypto/seal/padding.rb', line 6 def envelope_bytes @envelope_bytes end |
#header ⇒ Object
Returns the value of attribute header
6 7 8 |
# File 'lib/pq_crypto/seal/padding.rb', line 6 def header @header end |
#metadata_bytes ⇒ Object
Returns the value of attribute metadata_bytes
6 7 8 |
# File 'lib/pq_crypto/seal/padding.rb', line 6 def @metadata_bytes end |
Instance Method Details
#raw_inner_bytes ⇒ Object
10 11 12 |
# File 'lib/pq_crypto/seal/padding.rb', line 10 def raw_inner_bytes Format::INNER_PREFIX_BYTES + + content_bytes end |
#unpadded_envelope_bytes ⇒ Object
14 15 16 |
# File 'lib/pq_crypto/seal/padding.rb', line 14 def unpadded_envelope_bytes envelope_bytes - header.padded_inner_length + raw_inner_bytes end |