Class: PQCrypto::Seal::Inspection

Inherits:
Struct
  • Object
show all
Defined in:
lib/pq_crypto/seal/core.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content_suite_idObject

Returns the value of attribute content_suite_id

Returns:

  • (Object)

    the current value of content_suite_id



16
17
18
# File 'lib/pq_crypto/seal/core.rb', line 16

def content_suite_id
  @content_suite_id
end

#envelope_bytesObject

Returns the value of attribute envelope_bytes

Returns:

  • (Object)

    the current value of envelope_bytes



16
17
18
# File 'lib/pq_crypto/seal/core.rb', line 16

def envelope_bytes
  @envelope_bytes
end

#padded_inner_lengthObject

Returns the value of attribute padded_inner_length

Returns:

  • (Object)

    the current value of 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_idObject

Returns the value of attribute padding_policy_id

Returns:

  • (Object)

    the current value of padding_policy_id



16
17
18
# File 'lib/pq_crypto/seal/core.rb', line 16

def padding_policy_id
  @padding_policy_id
end

#payload_idObject

Returns the value of attribute payload_id

Returns:

  • (Object)

    the current value of payload_id



16
17
18
# File 'lib/pq_crypto/seal/core.rb', line 16

def payload_id
  @payload_id
end

#public_metadataObject

Returns the value of attribute public_metadata

Returns:

  • (Object)

    the current value of public_metadata



16
17
18
# File 'lib/pq_crypto/seal/core.rb', line 16

def 
  @public_metadata
end

#recipient_capacityObject

Returns the value of attribute recipient_capacity

Returns:

  • (Object)

    the current value of recipient_capacity



16
17
18
# File 'lib/pq_crypto/seal/core.rb', line 16

def recipient_capacity
  @recipient_capacity
end

#slot_sizeObject

Returns the value of attribute slot_size

Returns:

  • (Object)

    the current value of slot_size



16
17
18
# File 'lib/pq_crypto/seal/core.rb', line 16

def slot_size
  @slot_size
end

#wrap_suite_idObject

Returns the value of attribute wrap_suite_id

Returns:

  • (Object)

    the current value of 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