"Halite PHP library is not installed." check is inconsistent

Created on 25 October 2024, 6 months ago

Problem/Motivation

sodium.install:

    // Verify that the Halite PHP library is available.
    if (!class_exists('\ParagonIE\Halite\Halite')) {

SodiumEncryptionMethod.php:

    if (!class_exists('\ParagonIE\Halite\Symmetric\Crypto')) {
      $errors[] = $this->t('Halite PHP library is not installed.');
    }

Proposed resolution

Use a common function and check for the same class.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇯🇵Japan ptmkenny

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024