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() crypto_pwhash_BYTES_MAX = lib.crypto_pwhash_bytes_max() crypto_pwhash_argon2i_STRPREFIX = \ ffi.string(ffi.cast("char *", lib.crypto_pwhash_argon2i_strprefix() ) )[:] crypto_pwhash_argon2i_MEMLIMIT_MIN = \ lib.crypto_pwhash_argon2i_memlimit_min() crypto_pwhash_argon2i_MEMLIMIT_MAX = \ lib.crypto_pwhash_argon2i_memlimit_max() crypto_pwhash_argon2i_OPSLIMIT_MIN = \ lib.crypto_pwhash_argon2i_opslimit_min() crypto_pwhash_argon2i_OPSLIMIT_MAX = \ lib.crypto_pwhash_argon2i_opslimit_max() crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE = \ lib.crypto_pwhash_argon2i_opslimit_interactive() crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE = \ lib.crypto_pwhash_argon2i_memlimit_interactive() crypto_pwhash_argon2i_OPSLIMIT_MODERATE = \ lib.crypto_pwhash_argon2i_opslimit_moderate() crypto_pwhash_argon2i_MEMLIMIT_MODERATE = \ lib.crypto_pwhash_argon2i_memlimit_moderate() crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE = \ lib.crypto_pwhash_argon2i_opslimit_sensitive() crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE = \
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() crypto_pwhash_BYTES_MAX = lib.crypto_pwhash_bytes_max() crypto_pwhash_argon2i_STRPREFIX = \ ffi.string(ffi.cast("char *", lib.crypto_pwhash_argon2i_strprefix() ) )[:] crypto_pwhash_argon2i_MEMLIMIT_MIN = \ lib.crypto_pwhash_argon2i_memlimit_min() crypto_pwhash_argon2i_MEMLIMIT_MAX = \ lib.crypto_pwhash_argon2i_memlimit_max() crypto_pwhash_argon2i_OPSLIMIT_MIN = \ lib.crypto_pwhash_argon2i_opslimit_min() crypto_pwhash_argon2i_OPSLIMIT_MAX = \ lib.crypto_pwhash_argon2i_opslimit_max() crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE = \ lib.crypto_pwhash_argon2i_opslimit_interactive() crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE = \ lib.crypto_pwhash_argon2i_memlimit_interactive() crypto_pwhash_argon2i_OPSLIMIT_MODERATE = \ lib.crypto_pwhash_argon2i_opslimit_moderate() crypto_pwhash_argon2i_MEMLIMIT_MODERATE = \ lib.crypto_pwhash_argon2i_memlimit_moderate() crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE = \ lib.crypto_pwhash_argon2i_opslimit_sensitive() crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE = \
lib.crypto_pwhash_argon2i_memlimit_interactive() crypto_pwhash_argon2i_OPSLIMIT_MODERATE = \ lib.crypto_pwhash_argon2i_opslimit_moderate() crypto_pwhash_argon2i_MEMLIMIT_MODERATE = \ lib.crypto_pwhash_argon2i_memlimit_moderate() crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE = \ lib.crypto_pwhash_argon2i_opslimit_sensitive() crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE = \ lib.crypto_pwhash_argon2i_memlimit_sensitive() crypto_pwhash_argon2i_MEMLIMIT_MIN = \ max(lib.crypto_pwhash_argon2i_memlimit_min(), 8*1024) # Workaround for jedisct1/libsodium#516 # fixed in libsodium version 1.0.13 crypto_pwhash_argon2i_MEMLIMIT_MAX = \ max(lib.crypto_pwhash_argon2i_memlimit_max(), 2147483648) # Workaround for jedisct1/libsodium#522 # fixed in libsodium version 1.0.13 crypto_pwhash_argon2i_OPSLIMIT_MIN = \ lib.crypto_pwhash_argon2i_opslimit_min() crypto_pwhash_argon2i_OPSLIMIT_MAX = \ lib.crypto_pwhash_argon2i_opslimit_max() crypto_pwhash_argon2i_PASSWD_MIN = \ lib.crypto_pwhash_argon2i_passwd_min() crypto_pwhash_argon2i_PASSWD_MAX = \ lib.crypto_pwhash_argon2i_passwd_max() crypto_pwhash_argon2i_BYTES_MIN = \ lib.crypto_pwhash_argon2i_bytes_min() crypto_pwhash_argon2i_BYTES_MAX = \ lib.crypto_pwhash_argon2i_bytes_max()
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() crypto_pwhash_BYTES_MAX = lib.crypto_pwhash_bytes_max() crypto_pwhash_argon2i_STRPREFIX = ffi.string( ffi.cast("char *", lib.crypto_pwhash_argon2i_strprefix()))[:] crypto_pwhash_argon2i_MEMLIMIT_MIN = lib.crypto_pwhash_argon2i_memlimit_min() crypto_pwhash_argon2i_MEMLIMIT_MAX = lib.crypto_pwhash_argon2i_memlimit_max() crypto_pwhash_argon2i_OPSLIMIT_MIN = lib.crypto_pwhash_argon2i_opslimit_min() crypto_pwhash_argon2i_OPSLIMIT_MAX = lib.crypto_pwhash_argon2i_opslimit_max() crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE = ( lib.crypto_pwhash_argon2i_opslimit_interactive()) crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE = ( lib.crypto_pwhash_argon2i_memlimit_interactive()) crypto_pwhash_argon2i_OPSLIMIT_MODERATE = ( lib.crypto_pwhash_argon2i_opslimit_moderate()) crypto_pwhash_argon2i_MEMLIMIT_MODERATE = ( lib.crypto_pwhash_argon2i_memlimit_moderate()) crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE = ( lib.crypto_pwhash_argon2i_opslimit_sensitive()) crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE = ( lib.crypto_pwhash_argon2i_memlimit_sensitive())