import sys import nacl.exceptions as exc from nacl._sodium import ffi, lib from nacl.exceptions import ensure crypto_pwhash_scryptsalsa208sha256_SALTBYTES = \ lib.crypto_pwhash_scryptsalsa208sha256_saltbytes() crypto_pwhash_scryptsalsa208sha256_STRBYTES = \ lib.crypto_pwhash_scryptsalsa208sha256_strbytes() crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE = \ lib.crypto_pwhash_scryptsalsa208sha256_opslimit_interactive() crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE = \ lib.crypto_pwhash_scryptsalsa208sha256_memlimit_interactive() crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE = \ lib.crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive() crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE = \ lib.crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive() SCRYPT_OPSLIMIT_INTERACTIVE = \ crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE SCRYPT_MEMLIMIT_INTERACTIVE = \ crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE SCRYPT_OPSLIMIT_SENSITIVE = \ crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE SCRYPT_MEMLIMIT_SENSITIVE = \ crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE SCRYPT_SALTBYTES = \ crypto_pwhash_scryptsalsa208sha256_SALTBYTES
crypto_pwhash_scryptsalsa208sha256_BYTES_MIN = \ lib.crypto_pwhash_scryptsalsa208sha256_bytes_min() crypto_pwhash_scryptsalsa208sha256_BYTES_MAX = \ lib.crypto_pwhash_scryptsalsa208sha256_bytes_max() crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN = \ lib.crypto_pwhash_scryptsalsa208sha256_memlimit_min() crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX = \ lib.crypto_pwhash_scryptsalsa208sha256_memlimit_max() crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN = \ lib.crypto_pwhash_scryptsalsa208sha256_opslimit_min() crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX = \ lib.crypto_pwhash_scryptsalsa208sha256_opslimit_max() crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE = \ lib.crypto_pwhash_scryptsalsa208sha256_opslimit_interactive() crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE = \ lib.crypto_pwhash_scryptsalsa208sha256_memlimit_interactive() crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE = \ lib.crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive() crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE = \ lib.crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive() crypto_pwhash_ALG_ARGON2I13 = lib.crypto_pwhash_alg_argon2i13() crypto_pwhash_ALG_ARGON2ID13 = lib.crypto_pwhash_alg_argon2id13() crypto_pwhash_ALG_DEFAULT = lib.crypto_pwhash_alg_default() crypto_pwhash_SALTBYTES = lib.crypto_pwhash_saltbytes() crypto_pwhash_STRBYTES = lib.crypto_pwhash_strbytes() crypto_pwhash_PASSWD_MIN = lib.crypto_pwhash_passwd_min() crypto_pwhash_PASSWD_MAX = lib.crypto_pwhash_passwd_max() crypto_pwhash_BYTES_MIN = lib.crypto_pwhash_bytes_min()