Class: SshTresor::Slot

Inherits:
Struct
  • Object
show all
Defined in:
lib/ssh_tresor/format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#challengeObject

Returns the value of attribute challenge

Returns:

  • (Object)

    the current value of challenge



9
10
11
# File 'lib/ssh_tresor/format.rb', line 9

def challenge
  @challenge
end

#encrypted_keyObject

Returns the value of attribute encrypted_key

Returns:

  • (Object)

    the current value of encrypted_key



9
10
11
# File 'lib/ssh_tresor/format.rb', line 9

def encrypted_key
  @encrypted_key
end

#fingerprintObject

Returns the value of attribute fingerprint

Returns:

  • (Object)

    the current value of fingerprint



9
10
11
# File 'lib/ssh_tresor/format.rb', line 9

def fingerprint
  @fingerprint
end

#nonceObject

Returns the value of attribute nonce

Returns:

  • (Object)

    the current value of nonce



9
10
11
# File 'lib/ssh_tresor/format.rb', line 9

def nonce
  @nonce
end

Instance Method Details

#to_bytesObject



10
11
12
# File 'lib/ssh_tresor/format.rb', line 10

def to_bytes
  fingerprint + challenge + nonce + encrypted_key
end