src/Library/Signer.php
public function openContentWithRSA($sealedData, $envKey)
    {
        $key = $this->getPrivateKeyData();

        $decryptedData = null;
        try {
            $result = openssl_open($sealedData, $decryptedData, $envKey, $key);
            if ($result === false) {
                throw new Exception();
            }
        } catch (Exception $exception) {
            $this->throwExceptionOpenssl(
                "Error while opening crypt data!",
                self::ERROR_DECRYPT_DATA,
                $exception
            );
        }

        return $decryptedData;
    }
public function openContentWithRSA($sealedData, $envKey)
    {
        $key = $this->getPrivateKeyData();

        $decryptedData = null;
        try {
            $result = openssl_open($sealedData, $decryptedData, $envKey, $key);
            if ($result === false) {
                throw new Exception();
            }
        } catch (Exception $exception) {
            $this->throwExceptionOpenssl(
                "Error while opening crypt data!",
                self::ERROR_DECRYPT_DATA,
                $exception
            );
        }

        return $decryptedData;
    }
@param $sealedData
@param $envKey

@return null
@throws Exception