Class: Sdkey::Crypto::Seal::SealedEnvelope

Inherits:
Struct
  • Object
show all
Defined in:
lib/sdkey/crypto/seal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ciphertext_b64Object

Returns the value of attribute ciphertext_b64

Returns:

  • (Object)

    the current value of ciphertext_b64



14
15
16
# File 'lib/sdkey/crypto/seal.rb', line 14

def ciphertext_b64
  @ciphertext_b64
end

#iv_b64Object

Returns the value of attribute iv_b64

Returns:

  • (Object)

    the current value of iv_b64



14
15
16
# File 'lib/sdkey/crypto/seal.rb', line 14

def iv_b64
  @iv_b64
end

#tag_b64Object

Returns the value of attribute tag_b64

Returns:

  • (Object)

    the current value of tag_b64



14
15
16
# File 'lib/sdkey/crypto/seal.rb', line 14

def tag_b64
  @tag_b64
end

Instance Method Details

#as_wireObject



15
16
17
18
19
20
21
# File 'lib/sdkey/crypto/seal.rb', line 15

def as_wire
  {
    "ivB64" => iv_b64,
    "ciphertextB64" => ciphertext_b64,
    "tagB64" => tag_b64
  }
end