Exception: PuTTY::Key::Argon2Error

Inherits:
Error
  • Object
show all
Defined in:
lib/putty/key/error.rb

Overview

Indicates that libargon2 encountered an error hashing the passphrase to derive the keys for a format 3 .ppk file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code, message) ⇒ Argon2Error

Initializes a new PuTTY::Key::Argon2Error.

Parameters:

  • error_code (Integer)

    The error code returned by the argon2_hash function.

  • message (String)

    A description of the error.



32
33
34
35
# File 'lib/putty/key/error.rb', line 32

def initialize(error_code, message)
  super(message)
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (readonly)

The error code returned by the argon2_hash function.



25
26
27
# File 'lib/putty/key/error.rb', line 25

def error_code
  @error_code
end