Files
ServerSync/lib/nacl/__pycache__/hash.cpython-314.pyc

90 lines
7.3 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
u<10>i<EFBFBD><00><00>*<00>Rt^RIt^RIt]PP
t]PPt]PPt
]PPt ]PPt]PPt]PP"t]PP&t]PP*t]PP.t]PP2t]PP6t]PP:t]PP>t ]PPBt"]PPFt$]PJPL3RRllt']PJPL3RRllt(]RRR]PJPL3RRllt)])t*R]PJPL3R R
llt+]+t,R]PJPL3R R llt-R#) z<>
The :mod:`nacl.hash` module exposes one-shot interfaces
for libsodium selected hash primitives and the constants needed
for their usage.
Nc<00>d<00>V^8<>dQhR\R\PPR\/#<00><04><00>message<67>encoder<65>return<72><04>bytes<65>nacl<63>encoding<6E>Encoder)<01>formats"<22>0/tmp/pip-target-zhdecbcm/lib/python/nacl/hash.py<70> __annotate__r=<00>3<00><00> E<01> E<01> <12> E<01>!<21>]<5D>]<5D>2<>2<> E<01>
<EFBFBD> E<01>c<04>^<00>VP\PPV44#)z<>
Hashes ``message`` with SHA256.
:param message: The message to hash.
:type message: bytes
:param encoder: A class that is able to encode the hashed message.
:returns: The hashed message.
:rtype: bytes
)<04>encoder
<00>bindings<67>crypto_hash_sha256<35>rrs&&r<00>sha256r=<00>"<00><00> <13>><3E>><3E>$<24>-<2D>-<2D>:<3A>:<3A>7<EFBFBD>C<> D<>Drc<00>d<00>V^8<>dQhR\R\PPR\/#rr)r s"rrrLrrc<04>^<00>VP\PPV44#)z<>
Hashes ``message`` with SHA512.
:param message: The message to hash.
:type message: bytes
:param encoder: A class that is able to encode the hashed message.
:returns: The hashed message.
:rtype: bytes
)rr
r<00>crypto_hash_sha512rs&&r<00>sha512rLrrrc<00><><00>V^8<>dQhR\R\R\R\R\R\PPR\/#)r<00>data<74> digest_size<7A>key<65>salt<6C>personrr)r <00>intr
r r )r s"rrr[sX<00><00>&"<22>&"<22>
<0F>&"<22><14>&"<22>
<0F>&"<22> <10> &"<22>
<12> &"<22> <12>]<5D>]<5D> "<22> "<22> &"<22> <0B>&"rc<04>@<00>\WW#VR7pVPV4#)a<>
Hashes ``data`` with blake2b.
:param data: the digest input byte sequence
:type data: bytes
:param digest_size: the requested digest size; must be at most
:const:`BLAKE2B_BYTES_MAX`;
the default digest size is
:const:`BLAKE2B_BYTES`
:type digest_size: int
:param key: the key to be set for keyed MAC/PRF usage; if set, the key
must be at most :data:`~nacl.hash.BLAKE2B_KEYBYTES_MAX` long
:type key: bytes
:param salt: an initialization salt at most
:const:`BLAKE2B_SALTBYTES` long;
it will be zero-padded if needed
:type salt: bytes
:param person: a personalization string at most
:const:`BLAKE2B_PERSONALBYTES` long;
it will be zero-padded if needed
:type person: bytes
:param encoder: the encoder to use on returned digest
:type encoder: class
:returns: The hashed message.
:rtype: bytes
)rr r!r")<02> _b2b_hashr)rrr r!r"r<00>digests&&&&&& r<00>blake2br'[s'<00><00>F<17> <0C>3<EFBFBD>&<26><06>F<EFBFBD> <13>><3E>><3E>&<26> !<21>!rc<00>p<00>V^8<>dQhR\R\R\PPR\/#<00>rrr rrr)r s"rrr<00>s:<00><00>"<22>"<22> <12>"<22> <0E>"<22><12>]<5D>]<5D> "<22> "<22>"<22> <0B> "rc<04>:<00>\W4pVPV4#)a<>
Computes a keyed MAC of ``message`` using the short-input-optimized
siphash-2-4 construction.
:param message: The message to hash.
:type message: bytes
:param key: the message authentication key for the siphash MAC construct
:type key: bytes(:const:`SIPHASH_KEYBYTES`)
:param encoder: A class that is able to encode the hashed message.
:returns: The hashed message.
:rtype: bytes(:const:`SIPHASH_BYTES`)
)<02> _sip_hashr<00>rr rr&s&&& r<00> siphash24r-<00>s<00><00>"<17>w<EFBFBD> $<24>F<EFBFBD> <12>><3E>><3E>&<26> !<21>!rc<00>p<00>V^8<>dQhR\R\R\PPR\/#r)r)r s"rrr<00>s:<00><00>"<22>"<22> <12>"<22> <0E>"<22><12>]<5D>]<5D> "<22> "<22>"<22> <0B> "rc<04>:<00>\W4pVPV4#)a
Computes a keyed MAC of ``message`` using the 128 bit variant of the
siphash-2-4 construction.
:param message: The message to hash.
:type message: bytes
:param key: the message authentication key for the siphash MAC construct
:type key: bytes(:const:`SIPHASHX_KEYBYTES`)
:param encoder: A class that is able to encode the hashed message.
:returns: The hashed message.
:rtype: bytes(:const:`SIPHASHX_BYTES`)
:raises nacl.exceptions.UnavailableError: If called when using a
minimal build of libsodium.
.. versionadded:: 1.2
)<02>
_sip_hashxrr,s&&& r<00>
siphashx24r1<00>s<00><00>*<18><07> %<25>F<EFBFBD> <12>><3E>><3E>&<26> !<21>!r).<2E>__doc__<5F> nacl.bindingsr
<00> nacl.encodingr<00>crypto_generichash_BYTES<45> BLAKE2B_BYTES<45>crypto_generichash_BYTES_MIN<49>BLAKE2B_BYTES_MIN<49>crypto_generichash_BYTES_MAX<41>BLAKE2B_BYTES_MAX<41>crypto_generichash_KEYBYTES<45>BLAKE2B_KEYBYTES<45>crypto_generichash_KEYBYTES_MIN<49>BLAKE2B_KEYBYTES_MIN<49>crypto_generichash_KEYBYTES_MAX<41>BLAKE2B_KEYBYTES_MAX<41>crypto_generichash_SALTBYTES<45>BLAKE2B_SALTBYTES<45> crypto_generichash_PERSONALBYTES<45>BLAKE2B_PERSONALBYTES<45> crypto_shorthash_siphash24_BYTES<45> SIPHASH_BYTES<45>#crypto_shorthash_siphash24_KEYBYTES<45>SIPHASH_KEYBYTES<45>has_crypto_shorthash_siphashx24<32>SIPHASHX_AVAILABLE<4C>!crypto_shorthash_siphashx24_BYTES<45>SIPHASHX_BYTES<45>$crypto_shorthash_siphashx24_KEYBYTES<45>SIPHASHX_KEYBYTES<45>(crypto_generichash_blake2b_salt_personalr%<00>crypto_shorthash_siphash24r+<00>crypto_shorthash_siphashx24r0r <00>
HexEncoderrrr'<00> generichashr-<00> shorthashr1<00>rr<00><module>rVs<><00><01><04> <15><14><15> <0A> <0A>6<>6<> <0A>2<><18>M<EFBFBD>M<EFBFBD>><3E>><3E><11>:<3A><18>M<EFBFBD>M<EFBFBD>><3E>><3E><11>:<3A><17>=<3D>=<3D><<3C><<3C><10>E<><1B>}<7D>}<7D>D<>D<><14>M<><1B>}<7D>}<7D>D<>D<><14>M<><18>M<EFBFBD>M<EFBFBD>><3E>><3E><11><18><1C> <0A> <0A>F<>F<><15>'<27><15> <0A> <0A>><3E>><3E> <0A>*<2A><17>=<3D>=<3D>D<>D<><10>B<><19>]<5D>]<5D>B<>B<><12>><3E><15><1D><1D>@<40>@<40><0E>+<2B><18>M<EFBFBD>M<EFBFBD>F<>F<><11>C<> <10>M<EFBFBD>M<EFBFBD> B<> B<> <09> <10>M<EFBFBD>M<EFBFBD> 4<> 4<> <09> <11>]<5D>]<5D> 6<> 6<>
<EFBFBD>6:<3A>]<5D>]<5D>5M<35>5M<35> E<01> 6:<3A>]<5D>]<5D>5M<35>5M<35> E<01>"%<25><14><15><17>%)<29>]<5D>]<5D>%=<3D>%=<3D> &"<22>R<16> <0B>
<15>%)<29>]<5D>]<5D>%=<3D>%=<3D>"<22>* <16> <09>
<15>%)<29>]<5D>]<5D>%=<3D>%=<3D>"<22>"r