Interface Scrypt.Native

  • All Known Implementing Classes:
    LazySodiumJava
    Enclosing interface:
    Scrypt

    public static interface Scrypt.Native
    • Method Detail

      • cryptoPwHashScryptSalsa208Sha256

        boolean cryptoPwHashScryptSalsa208Sha256​(byte[] out,
                                                 long outLen,
                                                 byte[] password,
                                                 long passwordLen,
                                                 byte[] salt,
                                                 long opsLimit,
                                                 long memLimit)
      • cryptoPwHashScryptSalsa208Sha256Str

        boolean cryptoPwHashScryptSalsa208Sha256Str​(byte[] out,
                                                    byte[] password,
                                                    long passwordLen,
                                                    long opsLimit,
                                                    long memLimit)
      • cryptoPwHashScryptSalsa208Sha256StrVerify

        boolean cryptoPwHashScryptSalsa208Sha256StrVerify​(byte[] str,
                                                          byte[] password,
                                                          long passwordLen)
      • cryptoPwHashScryptSalsa208Sha256Ll

        boolean cryptoPwHashScryptSalsa208Sha256Ll​(byte[] password,
                                                   int passwordLen,
                                                   byte[] salt,
                                                   int saltLen,
                                                   long N,
                                                   long r,
                                                   long p,
                                                   byte[] buf,
                                                   int bufLen)
      • cryptoPwHashScryptSalsa208Sha256StrNeedsRehash

        boolean cryptoPwHashScryptSalsa208Sha256StrNeedsRehash​(byte[] hash,
                                                               long opsLimit,
                                                               long memLimit)
        Checks whether the Scrypt hash needs a rehash.
        Parameters:
        hash - The Scrypt hash.
        opsLimit - The operations limit used.
        memLimit - The memory limit used.
        Returns:
        True if the Scrypt hash needs to be rehashed.