ParagonIE_Sodium_Core32_BLAKE2b::pseudoConstructor

Advertisement

Summery Summery

This just sets the $iv static variable.

Syntax Syntax

ParagonIE_Sodium_Core32_BLAKE2b::pseudoConstructor()

Return Return

(void)

Source Source

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

    public static function pseudoConstructor()
    {
        static $called = false;
        if ($called) {
            return;
        }
        self::$iv = new SplFixedArray(8);
        self::$iv[0] = self::new64(0x6a09e667, 0xf3bcc908);
        self::$iv[1] = self::new64(0xbb67ae85, 0x84caa73b);
        self::$iv[2] = self::new64(0x3c6ef372, 0xfe94f82b);
        self::$iv[3] = self::new64(0xa54ff53a, 0x5f1d36f1);
        self::$iv[4] = self::new64(0x510e527f, 0xade682d1);
        self::$iv[5] = self::new64(0x9b05688c, 0x2b3e6c1f);
        self::$iv[6] = self::new64(0x1f83d9ab, 0xfb41bd6b);
        self::$iv[7] = self::new64(0x5be0cd19, 0x137e2179);

        $called = true;
    }

Advertisement

Advertisement

Leave a Reply