Class: PQCrypto::Seal::Inspection
- Inherits:
-
Struct
- Object
- Struct
- PQCrypto::Seal::Inspection
- Defined in:
- lib/pq_crypto/seal/core.rb
Instance Attribute Summary collapse
-
#content_suite_id ⇒ Object
Returns the value of attribute content_suite_id.
-
#envelope_bytes ⇒ Object
Returns the value of attribute envelope_bytes.
-
#padded_inner_length ⇒ Object
Returns the value of attribute padded_inner_length.
-
#padding_policy_id ⇒ Object
Returns the value of attribute padding_policy_id.
-
#payload_id ⇒ Object
Returns the value of attribute payload_id.
-
#public_metadata ⇒ Object
Returns the value of attribute public_metadata.
-
#recipient_capacity ⇒ Object
Returns the value of attribute recipient_capacity.
-
#slot_size ⇒ Object
Returns the value of attribute slot_size.
-
#wrap_suite_id ⇒ Object
Returns the value of attribute wrap_suite_id.
Class Method Summary collapse
Instance Attribute Details
#content_suite_id ⇒ Object
Returns the value of attribute content_suite_id
16 17 18 |
# File 'lib/pq_crypto/seal/core.rb', line 16 def content_suite_id @content_suite_id end |
#envelope_bytes ⇒ Object
Returns the value of attribute envelope_bytes
16 17 18 |
# File 'lib/pq_crypto/seal/core.rb', line 16 def envelope_bytes @envelope_bytes end |
#padded_inner_length ⇒ Object
Returns the value of attribute padded_inner_length
16 17 18 |
# File 'lib/pq_crypto/seal/core.rb', line 16 def padded_inner_length @padded_inner_length end |
#padding_policy_id ⇒ Object
Returns the value of attribute padding_policy_id
16 17 18 |
# File 'lib/pq_crypto/seal/core.rb', line 16 def padding_policy_id @padding_policy_id end |
#payload_id ⇒ Object
Returns the value of attribute payload_id
16 17 18 |
# File 'lib/pq_crypto/seal/core.rb', line 16 def payload_id @payload_id end |
#public_metadata ⇒ Object
Returns the value of attribute public_metadata
16 17 18 |
# File 'lib/pq_crypto/seal/core.rb', line 16 def @public_metadata end |
#recipient_capacity ⇒ Object
Returns the value of attribute recipient_capacity
16 17 18 |
# File 'lib/pq_crypto/seal/core.rb', line 16 def recipient_capacity @recipient_capacity end |
#slot_size ⇒ Object
Returns the value of attribute slot_size
16 17 18 |
# File 'lib/pq_crypto/seal/core.rb', line 16 def slot_size @slot_size end |
#wrap_suite_id ⇒ Object
Returns the value of attribute wrap_suite_id
16 17 18 |
# File 'lib/pq_crypto/seal/core.rb', line 16 def wrap_suite_id @wrap_suite_id end |
Class Method Details
.from_header(header, section, envelope_bytes:) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/pq_crypto/seal/core.rb', line 19 def self.from_header(header, section, envelope_bytes:) new( payload_id: header.payload_id, public_metadata: header., recipient_capacity: header.recipient_capacity, slot_size: header.slot_size, padded_inner_length: header.padded_inner_length, content_suite_id: header.content_suite_id, wrap_suite_id: section.wrap_suite_id, padding_policy_id: header.padding_policy_id, envelope_bytes: envelope_bytes ) end |