ParagonIE_Sodium_File::box_seal_open

SummerySummery

Open a sealed file (rather than a string). Uses less memory than ParagonIE_Sodium_Compat::crypto_box_seal_open(), but produces the same result.

Syntax

ParagonIE_Sodium_File::box_seal_open( string $inputFile, string $outputFile, string $ecdhKeypair )

DescriptionDescription

Warning: Does not protect against TOCTOU attacks. You should just load the file into memory and use crypto_box_seal_open() if you are worried about those.

ParametersParameters

$inputFile

(string) (Required)

$outputFile

(string) (Required)

$ecdhKeypair

(string) (Required)

ReturnReturn

(bool)

SourceSource

File: wp-includes/sodium_compat/src/File.php


			
Scroll to Top