public function ParagonIE_Sodium_Core32_Int32::mask in Automatic Updates 7
Same name and namespace in other branches
- 8 vendor/paragonie/sodium_compat/src/Core32/Int32.php \ParagonIE_Sodium_Core32_Int32::mask()
Parameters
int $m:
Return value
File
- vendor/
paragonie/ sodium_compat/ src/ Core32/ Int32.php, line 138
Class
- ParagonIE_Sodium_Core32_Int32
- Class ParagonIE_Sodium_Core32_Int32
Code
public function mask($m = 0) {
/** @var int $hi */
$hi = $m >> 16 & 0xffff;
/** @var int $lo */
$lo = $m & 0xffff;
return new ParagonIE_Sodium_Core32_Int32(array(
(int) ($this->limbs[0] & $hi),
(int) ($this->limbs[1] & $lo),
), $this->unsignedInt);
}