Class ParagonIE_Sodium_Crypto
ATTENTION!
If you are using this library, you should be using ParagonIE_Sodium_Compat in your code, not this class.
package | WordPress |
---|---|
inherited_from | \ParagonIE_Sodium_Crypto |
box_seed_keypair(string $seed) : string
string
\SodiumException |
|
---|---|
\TypeError |
string
scalarmult_base(string $secret) : string
Used to get a secret key from a public key.
string
\SodiumException |
|
---|---|
\TypeError |
string
scalarmult_throw_if_zero(string $q) : void
string
\SodiumException |
|
---|---|
\TypeError |
aead_chacha20poly1305_ABYTES = 16
aead_chacha20poly1305_IETF_ABYTES = 16
aead_chacha20poly1305_IETF_KEYBYTES = 32
aead_chacha20poly1305_IETF_NPUBBYTES = 12
aead_chacha20poly1305_IETF_NSECBYTES = 0
aead_chacha20poly1305_KEYBYTES = 32
aead_chacha20poly1305_NPUBBYTES = 8
aead_chacha20poly1305_NSECBYTES = 0
aead_xchacha20poly1305_IETF_ABYTES = 16
aead_xchacha20poly1305_IETF_KEYBYTES = 32
aead_xchacha20poly1305_IETF_NPUBBYTES = 24
aead_xchacha20poly1305_IETF_NSECBYTES = 0
box_curve25519xsalsa20poly1305_BEFORENMBYTES = 32
box_curve25519xsalsa20poly1305_BOXZEROBYTES = 16
box_curve25519xsalsa20poly1305_MACBYTES = 16
box_curve25519xsalsa20poly1305_NONCEBYTES = 24
box_curve25519xsalsa20poly1305_PUBLICKEYBYTES = 32
box_curve25519xsalsa20poly1305_SECRETKEYBYTES = 32
box_curve25519xsalsa20poly1305_SEEDBYTES = 32
box_curve25519xsalsa20poly1305_ZEROBYTES = 32
onetimeauth_poly1305_BYTES = 16
onetimeauth_poly1305_KEYBYTES = 32
secretbox_xchacha20poly1305_BOXZEROBYTES = 16
secretbox_xchacha20poly1305_KEYBYTES = 32
secretbox_xchacha20poly1305_MACBYTES = 16
secretbox_xchacha20poly1305_NONCEBYTES = 24
secretbox_xchacha20poly1305_ZEROBYTES = 32
secretbox_xsalsa20poly1305_BOXZEROBYTES = 16
secretbox_xsalsa20poly1305_KEYBYTES = 32
secretbox_xsalsa20poly1305_MACBYTES = 16
secretbox_xsalsa20poly1305_NONCEBYTES = 24
secretbox_xsalsa20poly1305_ZEROBYTES = 32
stream_salsa20_KEYBYTES = 32