Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
subInt32 example
/** @var ParagonIE_Sodium_Core32_Int32 $h8 */
$h8
= ParagonIE_Sodium_Core32_Int32::
fromInt
(
self::
load_3
(
self::
substr
(
$s
, 26, 3
)
)
<< 4
)
;
/** @var ParagonIE_Sodium_Core32_Int32 $h9 */
$h9
= ParagonIE_Sodium_Core32_Int32::
fromInt
(
(
self::
load_3
(
self::
substr
(
$s
, 29, 3
)
)
& 8388607
)
<< 2
)
;
$carry9
=
$h9
->
addInt
(
1 << 24
)
->
shiftRight
(
25
)
;
$h0
=
$h0
->
addInt32
(
$carry9
->
mulInt
(
19, 5
)
)
;
$h9
=
$h9
->
subInt32
(
$carry9
->
shiftLeft
(
25
)
)
;
$carry1
=
$h1
->
addInt
(
1 << 24
)
->
shiftRight
(
25
)
;
$h2
=
$h2
->
addInt32
(
$carry1
)
;
$h1
=
$h1
->
subInt32
(
$carry1
->
shiftLeft
(
25
)
)
;
$carry3
=
$h3
->
addInt
(
1 << 24
)
->
shiftRight
(
25
)
;
$h4
=
$h4
->
addInt32
(
$carry3
)
;
$h3
=
$h3
->
subInt32
(
$carry3
->
shiftLeft
(
25
)
)
;
$carry5
=
$h5
->
addInt
(
1 << 24
)
->
shiftRight
(
25
)
;
$h6
=
$h6
->
addInt32
(
$carry5
)
;