ParagonIE_Sodium_Crypto32
class ParagonIE_Sodium_Crypto32
// Constructor: function Object() { [native code] } Class ParagonIE_Sodium_Crypto
Methods 41 methods
| Method / Return | Description |
|---|---|
| aead_chacha20poly1305_decrypt() string | AEAD Decryption with ChaCha20-Poly1305
Parameters: $message: mixed, $ad: mixed, $nonce: mixed, $key: mixed |
| aead_chacha20poly1305_encrypt() string | AEAD Encryption with ChaCha20-Poly1305
Parameters: $message: mixed, $ad: mixed, $nonce: mixed, $key: mixed |
| aead_chacha20poly1305_ietf_decrypt() string | AEAD Decryption with ChaCha20-Poly1305, IETF mode (96-bit nonce)
Parameters: $message: mixed, $ad: mixed, $nonce: mixed, $key: mixed |
| aead_chacha20poly1305_ietf_encrypt() string | AEAD Encryption with ChaCha20-Poly1305, IETF mode (96-bit nonce)
Parameters: $message: mixed, $ad: mixed, $nonce: mixed, $key: mixed |
| aead_xchacha20poly1305_ietf_decrypt() string | AEAD Decryption with ChaCha20-Poly1305, IETF mode (96-bit nonce)
Parameters: $message: mixed, $ad: mixed, $nonce: mixed, $key: mixed |
| aead_xchacha20poly1305_ietf_encrypt() string | AEAD Encryption with ChaCha20-Poly1305, IETF mode (96-bit nonce)
Parameters: $message: mixed, $ad: mixed, $nonce: mixed, $key: mixed |
| auth() string | HMAC-SHA-512-256 (a.k.a. the leftmost 256 bits of HMAC-SHA-512)
Parameters: $message: mixed, $key: mixed |
| auth_verify() bool | HMAC-SHA-512-256 validation. Constant-time via hash_equals().
Parameters: $mac: mixed, $message: mixed, $key: mixed |
| box() string | X25519 key exchange followed by XSalsa20Poly1305 symmetric encryption
Parameters: $plaintext: mixed, $nonce: mixed, $keypair: mixed |
| box_seal() string | X25519-XSalsa20-Poly1305 with one ephemeral X25519 keypair.
Parameters: $message: mixed, $publicKey: mixed |
| box_seal_open() string | Opens a message encrypted via box_seal().
Parameters: $message: mixed, $keypair: mixed |
| box_beforenm() string | Used by crypto_box() to get the crypto_secretbox() key.
Parameters: $sk: mixed, $pk: mixed |
| box_keypair() string | No description available. |
| box_seed_keypair() string | No description available.
Parameters: $seed: mixed |
| box_keypair_from_secretkey_and_publickey() string | No description available.
Parameters: $sKey: mixed, $pKey: mixed |
| box_secretkey() string | No description available.
Parameters: $keypair: mixed |
| box_publickey() string | No description available.
Parameters: $keypair: mixed |
| box_publickey_from_secretkey() string | No description available.
Parameters: $sKey: mixed |
| box_open() string | Decrypt a message encrypted with box().
Parameters: $ciphertext: mixed, $nonce: mixed, $keypair: mixed |
| generichash() string | Calculate a BLAKE2b hash.
Parameters: $message: mixed, $key: mixed, $outlen: mixed |
| generichash_final() string | Finalize a BLAKE2b hashing context, returning the hash.
Parameters: $ctx: mixed, $outlen: mixed |
| generichash_init() string | Initialize a hashing context for BLAKE2b.
Parameters: $key: mixed, $outputLength: mixed |
| generichash_init_salt_personal() string | Initialize a hashing context for BLAKE2b.
Parameters: $key: mixed, $outputLength: mixed, $salt: mixed, $personal: mixed |
| generichash_update() string | Update a hashing context for BLAKE2b with $message
Parameters: $ctx: mixed, $message: mixed |
| keyExchange() string | Libsodium's crypto_kx().
Parameters: $my_sk: mixed, $their_pk: mixed, $client_pk: mixed, $server_pk: mixed |
| scalarmult() string | ECDH over Curve25519
Parameters: $sKey: mixed, $pKey: mixed |
| scalarmult_base() string | ECDH over Curve25519, using the basepoint.
Parameters: $secret: mixed |
| scalarmult_throw_if_zero() void | This throws an Error if a zero public key was passed to the function.
Parameters: $q: mixed |
| secretbox() string | XSalsa20-Poly1305 authenticated symmetric-key encryption.
Parameters: $plaintext: mixed, $nonce: mixed, $key: mixed |
| secretbox_open() string | Decrypt a ciphertext generated via secretbox().
Parameters: $ciphertext: mixed, $nonce: mixed, $key: mixed |
| secretbox_xchacha20poly1305() string | XChaCha20-Poly1305 authenticated symmetric-key encryption.
Parameters: $plaintext: mixed, $nonce: mixed, $key: mixed |
| secretbox_xchacha20poly1305_open() string | Decrypt a ciphertext generated via secretbox_xchacha20poly1305().
Parameters: $ciphertext: mixed, $nonce: mixed, $key: mixed |
| secretstream_xchacha20poly1305_init_push() array<int, | No description available.
Parameters: $key: mixed |
| secretstream_xchacha20poly1305_init_pull() string | No description available.
Parameters: $key: mixed, $header: mixed |
| secretstream_xchacha20poly1305_push() string | No description available.
Parameters: $state: mixed, $msg: mixed, $aad: mixed, $tag: mixed |
| secretstream_xchacha20poly1305_pull() (bool | No description available.
Parameters: $state: mixed, $cipher: mixed, $aad: mixed |
| secretstream_xchacha20poly1305_rekey() void | No description available.
Parameters: $state: mixed |
| sign_detached() string | Detached Ed25519 signature.
Parameters: $message: mixed, $sk: mixed |
| sign() string | Attached Ed25519 signature. (Returns a signed message.)
Parameters: $message: mixed, $sk: mixed |
| sign_open() string | Opens a signed message. If valid, returns the message.
Parameters: $signedMessage: mixed, $pk: mixed |
| sign_verify_detached() bool | Verify a detached signature of a given message and public key.
Parameters: $signature: mixed, $message: mixed, $pk: mixed |