PHP Conference Japan 2024

预定义常量

以下常量由此扩展定义,并且仅在扩展已编译到 PHP 中或在运行时动态加载时可用。

SODIUM_LIBRARY_VERSION (字符串)
SODIUM_LIBRARY_MAJOR_VERSION (整数)
SODIUM_LIBRARY_MINOR_VERSION (整数)
SODIUM_BASE64_VARIANT_ORIGINAL (整数)
SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING (整数)
SODIUM_BASE64_VARIANT_URLSAFE (整数)
SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING (整数)
SODIUM_CRYPTO_AEAD_AEGIS128L_KEYBYTES (整数)
自 PHP 8.4.0 起可用。
SODIUM_CRYPTO_AEAD_AEGIS128L_NSECBYTES (整数)
自 PHP 8.4.0 起可用。
SODIUM_CRYPTO_AEAD_AEGIS128L_NPUBBYTES (整数)
自 PHP 8.4.0 起可用。
SODIUM_CRYPTO_AEAD_AEGIS128L_ABYTES (整数)
自 PHP 8.4.0 起可用。
SODIUM_CRYPTO_AEAD_AEGIS256_KEYBYTES (整数)
自 PHP 8.4.0 起可用。
SODIUM_CRYPTO_AEAD_AEGIS256_NSECBYTES (整数)
自 PHP 8.4.0 起可用。
SODIUM_CRYPTO_AEAD_AEGIS256_NPUBBYTES (整数)
自 PHP 8.4.0 起可用。
SODIUM_CRYPTO_AEAD_AEGIS256_ABYTES (整数)
自 PHP 8.4.0 起可用。
SODIUM_CRYPTO_AEAD_AES256GCM_KEYBYTES (整数)
SODIUM_CRYPTO_AEAD_AES256GCM_NSECBYTES (整数)
SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES (整数)
SODIUM_CRYPTO_AEAD_AES256GCM_ABYTES (整数)
SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES (整数)
SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NSECBYTES (整数)
SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES (整数)
SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_ABYTES (整数)
SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES (整数)
SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NSECBYTES (整数)
SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES (整数)
SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_ABYTES (整数)
SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_ABYTES (整数)
SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES (整数)
SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES (整数)
SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NSECBYTES (整数)
SODIUM_CRYPTO_AUTH_BYTES (整数)
SODIUM_CRYPTO_AUTH_KEYBYTES (整数)
SODIUM_CRYPTO_BOX_SEALBYTES (整数)
SODIUM_CRYPTO_BOX_SECRETKEYBYTES (整数)
SODIUM_CRYPTO_BOX_PUBLICKEYBYTES (整数)
SODIUM_CRYPTO_BOX_KEYPAIRBYTES (整数)
SODIUM_CRYPTO_BOX_MACBYTES (整数)
SODIUM_CRYPTO_BOX_NONCEBYTES (整数)
SODIUM_CRYPTO_BOX_SEEDBYTES (整数)
SODIUM_CRYPTO_KDF_BYTES_MIN (整数)
SODIUM_CRYPTO_KDF_BYTES_MAX (整数)
SODIUM_CRYPTO_KDF_CONTEXTBYTES (整数)
SODIUM_CRYPTO_KDF_KEYBYTES (整数)
SODIUM_CRYPTO_KX_SEEDBYTES (整数)
SODIUM_CRYPTO_KX_SESSIONKEYBYTES (整数)
SODIUM_CRYPTO_KX_PUBLICKEYBYTES (整数)
SODIUM_CRYPTO_KX_SECRETKEYBYTES (整数)
SODIUM_CRYPTO_KX_KEYPAIRBYTES (int)
SODIUM_CRYPTO_GENERICHASH_BYTES (int)
SODIUM_CRYPTO_GENERICHASH_BYTES_MIN (int)
SODIUM_CRYPTO_GENERICHASH_BYTES_MAX (int)
SODIUM_CRYPTO_GENERICHASH_KEYBYTES (int)
SODIUM_CRYPTO_GENERICHASH_KEYBYTES_MIN (int)
SODIUM_CRYPTO_GENERICHASH_KEYBYTES_MAX (int)
SODIUM_CRYPTO_PWHASH_ALG_ARGON2I13 (int)
SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13 (int)
SODIUM_CRYPTO_PWHASH_ALG_DEFAULT (int)
SODIUM_CRYPTO_PWHASH_SALTBYTES (int)
SODIUM_CRYPTO_PWHASH_STRPREFIX (string)
SODIUM_CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE (int)
SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE (int)
SODIUM_CRYPTO_PWHASH_OPSLIMIT_MODERATE (int)
SODIUM_CRYPTO_PWHASH_MEMLIMIT_MODERATE (int)
SODIUM_CRYPTO_PWHASH_OPSLIMIT_SENSITIVE (int)
SODIUM_CRYPTO_PWHASH_MEMLIMIT_SENSITIVE (int)
SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SALTBYTES (int)
SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_STRPREFIX (string)
SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_INTERACTIVE (int)
SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_INTERACTIVE (int)
SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_SENSITIVE (int)
SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_SENSITIVE (int)
SODIUM_CRYPTO_CORE_RISTRETTO255_BYTES (int)
自 PHP 8.1.0 起可用。
SODIUM_CRYPTO_CORE_RISTRETTO255_HASHBYTES (int)
自 PHP 8.1.0 起可用。
SODIUM_CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES (int)
自 PHP 8.1.0 起可用。
SODIUM_CRYPTO_CORE_RISTRETTO255_SCALARBYTES (int)
自 PHP 8.1.0 起可用。
SODIUM_CRYPTO_SCALARMULT_BYTES (int)
SODIUM_CRYPTO_SCALARMULT_SCALARBYTES (int)
SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_BYTES (int)
自 PHP 8.1.0 起可用。
SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES (int)
自 PHP 8.1.0 起可用。
SODIUM_CRYPTO_SHORTHASH_BYTES (int)
SODIUM_CRYPTO_SHORTHASH_KEYBYTES (int)
SODIUM_CRYPTO_SECRETBOX_KEYBYTES (int)
SODIUM_CRYPTO_SECRETBOX_MACBYTES (int)
SODIUM_CRYPTO_SECRETBOX_NONCEBYTES (int)
SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_ABYTES (int)
SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_HEADERBYTES (int)
SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_KEYBYTES (int)
SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_MESSAGEBYTES_MAX (int)
SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_FINAL (int)
SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_MESSAGE (int)
SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_PUSH (int)
SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_REKEY (int)
SODIUM_CRYPTO_SIGN_BYTES (int)
SODIUM_CRYPTO_SIGN_SEEDBYTES (int)
SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES (int)
SODIUM_CRYPTO_SIGN_SECRETKEYBYTES (int)
SODIUM_CRYPTO_SIGN_KEYPAIRBYTES (int)
SODIUM_CRYPTO_STREAM_NONCEBYTES (int)
SODIUM_CRYPTO_STREAM_KEYBYTES (int)
SODIUM_CRYPTO_STREAM_XCHACHA20_KEYBYTES (int)
自 PHP 8.1.0 起可用。
SODIUM_CRYPTO_STREAM_XCHACHA20_NONCEBYTES (int)
自 PHP 8.1.0 起可用。

添加注释

用户贡献的注释

此页面没有用户贡献的注释。
To Top