Files
ServerSync/lib/nacl/bindings/__pycache__/crypto_scalarmult.cpython-314.pyc

102 lines
10 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
u<10>i4 <00><00>Va<00>Rt0t^RIHt^RIHtHt^RIHt] !]P4t ]P!4t ]^k]P!4t]^k^t^t] 'd#]P$!4t]P&!4tRRltRRltRR ltR
R ltR R ltRRltR#)<12>)<01>
exceptions)<02>ffi<66>lib)<01>ensurec<00>0<00>V^8<>dQhR\R\/#<00><03><00>n<>return<72><01>bytes)<01>formats"<22>F/tmp/pip-target-zhdecbcm/lib/python/nacl/bindings/crypto_scalarmult.py<70> __annotate__r$s<00><00> ;<3B> ;<3B>e<EFBFBD> ;<3B><05> ;<3B>c<04><><00>\P!R\4p\P!W4p\ V^8HR\ PR7\P!V\4R,#)zz
Computes and returns the scalar product of a standard group element and an
integer ``n``.
:param n: bytes
:rtype: bytes
<EFBFBD>unsigned char[]<5D>Unexpected library error<6F><01>raising<6E>NNN)
r<00>new<65>crypto_scalarmult_BYTESr<00>crypto_scalarmult_baser<00>exc<78> RuntimeError<6F>buffer<65>crypto_scalarmult_SCALARBYTES<45>r
<00>q<>rcs& rrr$sT<00><00> <0C><07><07>!<21>#:<3A>;<3B>A<EFBFBD> <0C> #<23> #<23>A<EFBFBD> )<29>B<EFBFBD>
<EFBFBD>2<EFBFBD><11>7<EFBFBD>.<2E><03>8H<38>8H<38>I<> <0E>:<3A>:<3A>a<EFBFBD>6<> 7<><01> :<3A>:rc<00><<00>V^8<>dQhR\R\R\/#<00>r r
<00>pr r )rs"rrr4s!<00><00>;<3B>;<3B><15>;<3B>5<EFBFBD>;<3B>U<EFBFBD>;rc<04><><00>\P!R\4p\P!W V4p\ V^8HR\ PR7\P!V\4R,#)z<>
Computes and returns the scalar product of the given group element and an
integer ``n``.
:param p: bytes
:param n: bytes
:rtype: bytes
rrrr)
rrrr<00>crypto_scalarmultrrrrr<00>r
r$r r!s&& rr&r&4sV<00><00> <0C><07><07>!<21>#:<3A>;<3B>A<EFBFBD> <0C> <1E> <1E>q<EFBFBD>Q<EFBFBD> '<27>B<EFBFBD>
<EFBFBD>2<EFBFBD><11>7<EFBFBD>.<2E><03>8H<38>8H<38>I<> <0E>:<3A>:<3A>a<EFBFBD>6<> 7<><01> :<3A>:rc<00>0<00>V^8<>dQhR\R\/#rr )rs"rrrEs<00><00>"=<3D>"=<3D>e<EFBFBD>"=<3D><05>"=rc<04><><00>\\R\PR7\\ V\
4;'d\ V4\8HRPR4\PR7\P!R\4p\P!W4p\V^8HR\PR7\P !V\4R,#)a<>
Computes and returns the scalar product of a standard group element and an
integer ``n`` on the edwards25519 curve.
:param n: a :py:data:`.crypto_scalarmult_ed25519_SCALARBYTES` long bytes
sequence representing a scalar
:type n: bytes
:return: a point on the edwards25519 curve, represented as a
:py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
:rtype: bytes
:raises nacl.exceptions.UnavailableError: If called when using a
minimal build of libsodium.
<EFBFBD>Not available in minimal buildr<00>&Input must be a {} long bytes sequence<63>%crypto_scalarmult_ed25519_SCALARBYTESrrr)r<00>has_crypto_scalarmult_ed25519r<00>UnavailableError<6F>
isinstancer <00>lenr,r<00> TypeErrorrr<00>crypto_scalarmult_ed25519_BYTESr<00>crypto_scalarmult_ed25519_baserrrs& rr3r3Es<><00><00> <0B>%<25>(<28><13>$<24>$<24><06>  <0B><12>1<EFBFBD>e<EFBFBD><1C> <<3C> <<3C> <0F><01>F<EFBFBD>;<3B> ;<3B>0<>7<>7<> 3<>
<EFBFBD><14> <0A> <0A> <06> <0C><07><07>!<21>#B<>C<>A<EFBFBD> <0C> +<2B> +<2B>A<EFBFBD> 1<>B<EFBFBD>
<EFBFBD>2<EFBFBD><11>7<EFBFBD>.<2E><03>8H<38>8H<38>I<> <0E>:<3A>:<3A>a<EFBFBD>8<> 9<>!<21> <<3C><rc<00>0<00>V^8<>dQhR\R\/#rr )rs"rrrjs<00><00>"=<3D>"=<3D>e<EFBFBD>"=<3D><05>"=rc<04><><00>\\R\PR7\\ V\
4;'d\ V4\8HRPR4\PR7\P!R\4p\P!W4p\V^8HR\PR7\P !V\4R,#)a
Computes and returns the scalar product of a standard group element and an
integer ``n`` on the edwards25519 curve. The integer ``n`` is not clamped.
:param n: a :py:data:`.crypto_scalarmult_ed25519_SCALARBYTES` long bytes
sequence representing a scalar
:type n: bytes
:return: a point on the edwards25519 curve, represented as a
:py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
:rtype: bytes
:raises nacl.exceptions.UnavailableError: If called when using a
minimal build of libsodium.
r*rr+r,rrr)rr-rr.r/r r0r,rr1rrr2r<00>&crypto_scalarmult_ed25519_base_noclamprrrs& rr6r6js<><00><00> <0B>%<25>(<28><13>$<24>$<24><06>  <0B><12>1<EFBFBD>e<EFBFBD><1C> <<3C> <<3C> <0F><01>F<EFBFBD>;<3B> ;<3B>0<>7<>7<> 3<>
<EFBFBD><14> <0A> <0A> <06> <0C><07><07>!<21>#B<>C<>A<EFBFBD> <0C> 3<> 3<>A<EFBFBD> 9<>B<EFBFBD>
<EFBFBD>2<EFBFBD><11>7<EFBFBD>.<2E><03>8H<38>8H<38>I<> <0E>:<3A>:<3A>a<EFBFBD>8<> 9<>!<21> <<3C><rc<00><<00>V^8<>dQhR\R\R\/#r#r )rs"rrr<00>s!<00><00>0=<3D>0=<3D><15>0=<3D>5<EFBFBD>0=<3D>U<EFBFBD>0=rc<04>t<00>\\R\PR7\\ V\
4;'d\ V4\8HRPR4\PR7\\ V\
4;'d\ V4\8HRPR4\PR7\P!R\4p\P!W V4p\V^8HR\PR7\P !V\4R,#) a-
Computes and returns the scalar product of a *clamped* integer ``n``
and the given group element on the edwards25519 curve.
The scalar is clamped, as done in the public key generation case,
by setting to zero the bits in position [0, 1, 2, 255] and setting
to one the bit in position 254.
:param n: a :py:data:`.crypto_scalarmult_ed25519_SCALARBYTES` long bytes
sequence representing a scalar
:type n: bytes
:param p: a :py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
representing a point on the edwards25519 curve
:type p: bytes
:return: a point on the edwards25519 curve, represented as a
:py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
:rtype: bytes
:raises nacl.exceptions.UnavailableError: If called when using a
minimal build of libsodium.
r*rr+r,r2rrr)rr-rr.r/r r0r,rr1r2rrr<00>crypto_scalarmult_ed25519rrr's&& rr9r9<00>s<><00><00>( <0B>%<25>(<28><13>$<24>$<24><06>  <0B><12>1<EFBFBD>e<EFBFBD><1C> <<3C> <<3C> <0F><01>F<EFBFBD>;<3B> ;<3B>0<>7<>7<> 3<>
<EFBFBD><14> <0A> <0A> <06> <0B><12>1<EFBFBD>e<EFBFBD><1C>J<>J<><13>Q<EFBFBD><16>+J<>!J<>0<>7<>7<> -<2D>
<EFBFBD><14> <0A> <0A> <06> <0C><07><07>!<21>#B<>C<>A<EFBFBD> <0C> &<26> &<26>q<EFBFBD>Q<EFBFBD> /<2F>B<EFBFBD>
<EFBFBD>2<EFBFBD><11>7<EFBFBD>.<2E><03>8H<38>8H<38>I<> <0E>:<3A>:<3A>a<EFBFBD>8<> 9<>!<21> <<3C><rc<00><<00>V^8<>dQhR\R\R\/#r#r )rs"rrr<00>s!<00><00>.=<3D>.=<3D><15>.=<3D>5<EFBFBD>.=<3D>U<EFBFBD>.=rc<04>t<00>\\R\PR7\\ V\
4;'d\ V4\8HRPR4\PR7\\ V\
4;'d\ V4\8HRPR4\PR7\P!R\4p\P!W V4p\V^8HR\PR7\P !V\4R,#) a<>
Computes and returns the scalar product of an integer ``n``
and the given group element on the edwards25519 curve. The integer
``n`` is not clamped.
:param n: a :py:data:`.crypto_scalarmult_ed25519_SCALARBYTES` long bytes
sequence representing a scalar
:type n: bytes
:param p: a :py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
representing a point on the edwards25519 curve
:type p: bytes
:return: a point on the edwards25519 curve, represented as a
:py:data:`.crypto_scalarmult_ed25519_BYTES` long bytes sequence
:rtype: bytes
:raises nacl.exceptions.UnavailableError: If called when using a
minimal build of libsodium.
r*rr+r,r2rrr)rr-rr.r/r r0r,rr1r2rrr<00>!crypto_scalarmult_ed25519_noclamprrr's&& rr<r<<00>s<><00><00>$ <0B>%<25>(<28><13>$<24>$<24><06>  <0B><12>1<EFBFBD>e<EFBFBD><1C> <<3C> <<3C> <0F><01>F<EFBFBD>;<3B> ;<3B>0<>7<>7<> 3<>
<EFBFBD><14> <0A> <0A> <06> <0B><12>1<EFBFBD>e<EFBFBD><1C>J<>J<><13>Q<EFBFBD><16>+J<>!J<>0<>7<>7<> -<2D>
<EFBFBD><14> <0A> <0A> <06> <0C><07><07>!<21>#B<>C<>A<EFBFBD> <0C> .<2E> .<2E>q<EFBFBD>Q<EFBFBD> 7<>B<EFBFBD>
<EFBFBD>2<EFBFBD><11>7<EFBFBD>.<2E><03>8H<38>8H<38>I<> <0E>:<3A>:<3A>a<EFBFBD>8<> 9<>!<21> <<3C><rc<00>h<00>V^8<>dQh/^\9d
\;R&^\9d
\;R&#)r rr)<02>__conditional_annotations__<5F>int)rs"rrrs-<00><00>"<22>"<22>=<3D><<3C><13><<3C>#<23>I<01>H<>s<EFBFBD>H<>#rN)r><00>naclrr<00> nacl._sodiumrr<00>nacl.exceptionsr<00>bool<6F>$PYNACL_HAS_CRYPTO_SCALARMULT_ED25519r-<00>crypto_scalarmult_bytesr<00>crypto_scalarmult_scalarbytesrr2r,<00>crypto_scalarmult_ed25519_bytes<65>%crypto_scalarmult_ed25519_scalarbytesrr&r3r6r9r<r)r>s@r<00><module>rIs<><00><><01> #<23>"<22>!<21>"<22>!%<25>S<EFBFBD>%M<>%M<> N<><1D>"<22>:<3A>:<3A><<3C><17><<3C>%(<28>%F<>%F<>%H<><1D>H<>"#<23><1F>()<29>%<25> <20>&)<29>&I<>&I<>&K<>#<23> <0B>1<>1<>3<>*<2A>
;<3B> ;<3B>""=<3D>J"=<3D>J0=<3D>f.=r