crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX = 0 crypto_pwhash_scryptsalsa208sha256_BYTES_MIN = 0 crypto_pwhash_scryptsalsa208sha256_BYTES_MAX = 0 crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN = 0 crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX = 0 crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN = 0 crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX = 0 crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE = 0 crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE = 0 crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE = 0 crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE = 0 if has_crypto_pwhash_scryptsalsa208sha256: crypto_pwhash_scryptsalsa208sha256_STRPREFIX = \ ffi.string(ffi.cast("char *", lib.crypto_pwhash_scryptsalsa208sha256_strprefix() ) )[:] crypto_pwhash_scryptsalsa208sha256_SALTBYTES = \ lib.crypto_pwhash_scryptsalsa208sha256_saltbytes() crypto_pwhash_scryptsalsa208sha256_STRBYTES = \ lib.crypto_pwhash_scryptsalsa208sha256_strbytes() crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN = \ lib.crypto_pwhash_scryptsalsa208sha256_passwd_min() crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX = \ lib.crypto_pwhash_scryptsalsa208sha256_passwd_max() 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 = \
# See the License for the specific language governing permissions and # limitations under the License. from __future__ import absolute_import, division, print_function import sys from six import integer_types import nacl.exceptions as exc from nacl._sodium import ffi, lib from nacl.exceptions import ensure crypto_pwhash_scryptsalsa208sha256_STRPREFIX = \ ffi.string(ffi.cast("char *", lib.crypto_pwhash_scryptsalsa208sha256_strprefix() ) )[:] crypto_pwhash_scryptsalsa208sha256_SALTBYTES = \ lib.crypto_pwhash_scryptsalsa208sha256_saltbytes() crypto_pwhash_scryptsalsa208sha256_STRBYTES = \ lib.crypto_pwhash_scryptsalsa208sha256_strbytes() crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN = \ lib.crypto_pwhash_scryptsalsa208sha256_passwd_min() crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX = \ lib.crypto_pwhash_scryptsalsa208sha256_passwd_max() 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 = \