WordPress at a glance
function is not described

ParagonIE_Sodium_File::box_decrypt() protected WP 1.0

{} It's a method of the class: ParagonIE_Sodium_File{}

No Hooks.

Return

true|false. Null. Nothing.

Usage

$result = ParagonIE_Sodium_File::box_decrypt( $ifp, $ofp, $mlen, $nonce, $boxKeypair );
$ifp(resource) (required)
-
$ofp(resource) (required)
-
$mlen(int) (required)
-
$nonce(string) (required)
-
$boxKeypair(string) (required)
-

Code of ParagonIE_Sodium_File::box_decrypt() WP 5.7.1

<?php
protected static function box_decrypt($ifp, $ofp, $mlen, $nonce, $boxKeypair)
{
    if (PHP_INT_SIZE === 4) {
        return self::secretbox_decrypt(
            $ifp,
            $ofp,
            $mlen,
            $nonce,
            ParagonIE_Sodium_Crypto32::box_beforenm(
                ParagonIE_Sodium_Crypto32::box_secretkey($boxKeypair),
                ParagonIE_Sodium_Crypto32::box_publickey($boxKeypair)
            )
        );
    }
    return self::secretbox_decrypt(
        $ifp,
        $ofp,
        $mlen,
        $nonce,
        ParagonIE_Sodium_Crypto::box_beforenm(
            ParagonIE_Sodium_Crypto::box_secretkey($boxKeypair),
            ParagonIE_Sodium_Crypto::box_publickey($boxKeypair)
        )
    );
}