Class: PQCrypto::Seal::Padding::Verification

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#content_bytesObject

Returns the value of attribute content_bytes

Returns:

  • (Object)

    the current value of content_bytes



6
7
8
# File 'lib/pq_crypto/seal/padding.rb', line 6

def content_bytes
  @content_bytes
end

#envelope_bytesObject

Returns the value of attribute envelope_bytes

Returns:

  • (Object)

    the current value of envelope_bytes



6
7
8
# File 'lib/pq_crypto/seal/padding.rb', line 6

def envelope_bytes
  @envelope_bytes
end

#headerObject

Returns the value of attribute header

Returns:

  • (Object)

    the current value of header



6
7
8
# File 'lib/pq_crypto/seal/padding.rb', line 6

def header
  @header
end

#metadata_bytesObject

Returns the value of attribute metadata_bytes

Returns:

  • (Object)

    the current value of metadata_bytes



6
7
8
# File 'lib/pq_crypto/seal/padding.rb', line 6

def 
  @metadata_bytes
end

Instance Method Details

#raw_inner_bytesObject



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_bytesObject



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