ParagonIE_Sodium_Core_Salsa20::rotate

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core_Salsa20::rotate( int $u, int $c )

Parameters Parameters

$u

(int) (Required)

$c

(int) (Required)

Return Return

(int)

Source Source

File: wp-includes/sodium_compat/src/Core/Salsa20.php

    public static function rotate($u, $c)
    {
        $u &= 0xffffffff;
        $c %= 32;
        return (int) (0xffffffff & (
                ($u << $c)
                    |
                ($u >> (32 - $c))
            )
        );
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.