protected static function box_encrypt($ifp,
$ofp,
$mlen,
$nonce,
$boxKeypair) { if (PHP_INT_SIZE === 4
) { return self::
secretbox_encrypt( $ifp,
$ofp,
$mlen,
$nonce,
ParagonIE_Sodium_Crypto32::
box_beforenm( ParagonIE_Sodium_Crypto32::
box_secretkey($boxKeypair),
ParagonIE_Sodium_Crypto32::
box_publickey($boxKeypair) ) );
} return self::
secretbox_encrypt( $ifp,
$ofp,
$mlen,
$nonce,
ParagonIE_Sodium_Crypto::
box_beforenm(