class Argon2::Engine

def self.argon2i_verify(pwd, hash, secret)

def self.argon2i_verify(pwd, hash, secret)
  secretlen = secret.nil? ? 0 : secret.length
  ret = Ext.wrap_argon2_verify(hash, pwd, pwd.length, secret, secretlen)
  return false if ERRORS[ret] == 'ARGON2_DECODING_FAIL'
  raise ArgonHashFail, ERRORS[ret] unless ret == 0
  true
end