WPDev.one
Core Class

ParagonIE_Sodium_File

class ParagonIE_Sodium_File // Constructor: function Object() { [native code] }

Class ParagonIE_Sodium_File

Methods 21 methods

Method / Return Description
box()
bool

Box a file (rather than a string). Uses less memory than

Parameters: $inputFile: mixed, $outputFile: mixed, $nonce: mixed, $keyPair: mixed
box_open()
bool

Open a boxed file (rather than a string). Uses less memory than

Parameters: $inputFile: mixed, $outputFile: mixed, $nonce: mixed, $keypair: mixed
box_seal()
bool

Seal a file (rather than a string). Uses less memory than

Parameters: $inputFile: mixed, $outputFile: mixed, $publicKey: mixed
box_seal_open()
bool

Open a sealed file (rather than a string). Uses less memory than

Parameters: $inputFile: mixed, $outputFile: mixed, $ecdhKeypair: mixed
generichash()
string

Calculate the BLAKE2b hash of a file.

Parameters: $filePath: mixed, $key: mixed, $outputLength: mixed
secretbox()
bool

Encrypt a file (rather than a string). Uses less memory than

Parameters: $inputFile: mixed, $outputFile: mixed, $nonce: mixed, $key: mixed
secretbox_open()
bool

Seal a file (rather than a string). Uses less memory than

Parameters: $inputFile: mixed, $outputFile: mixed, $nonce: mixed, $key: mixed
sign()
string

Sign a file (rather than a string). Uses less memory than

Parameters: $filePath: mixed, $secretKey: mixed
verify()
bool

Verify a file (rather than a string). Uses less memory than

Parameters: $sig: mixed, $filePath: mixed, $publicKey: mixed
box_encrypt()
bool

No description available.

Parameters: $ifp: mixed, $ofp: mixed, $mlen: mixed, $nonce: mixed, $boxKeypair: mixed
box_decrypt()
bool

No description available.

Parameters: $ifp: mixed, $ofp: mixed, $mlen: mixed, $nonce: mixed, $boxKeypair: mixed
secretbox_encrypt()
bool

Encrypt a file

Parameters: $ifp: mixed, $ofp: mixed, $mlen: mixed, $nonce: mixed, $key: mixed
secretbox_decrypt()
bool

Decrypt a file

Parameters: $ifp: mixed, $ofp: mixed, $mlen: mixed, $nonce: mixed, $key: mixed
onetimeauth_verify()
bool

No description available.

Parameters: $state: ParagonIE_Sodium_Core_Poly1305_State, $ifp: mixed, $tag: mixed, $mlen: mixed
updateHashWithFile()
(resource

Update a hash context with the contents of a file, without

Parameters: $hash: mixed, $fp: mixed, $size: mixed
sign_core32()
string

Sign a file (rather than a string). Uses less memory than

Parameters: $filePath: mixed, $secretKey: mixed
verify_core32()
bool

Verify a file (rather than a string). Uses less memory than

Parameters: $sig: mixed, $filePath: mixed, $publicKey: mixed
secretbox_encrypt_core32()
bool

Encrypt a file (32-bit)

Parameters: $ifp: mixed, $ofp: mixed, $mlen: mixed, $nonce: mixed, $key: mixed
secretbox_decrypt_core32()
bool

Decrypt a file (32-bit)

Parameters: $ifp: mixed, $ofp: mixed, $mlen: mixed, $nonce: mixed, $key: mixed
onetimeauth_verify_core32()
bool

One-time message authentication for 32-bit systems

Parameters: $state: ParagonIE_Sodium_Core32_Poly1305_State, $ifp: mixed, $tag: mixed, $mlen: mixed
ftell()
int

No description available.

Parameters: $resource: mixed

Class Information

Source File
wp-includes/sodium_compat/src/File.php
Advertisement