object
hash_common_32ï
Auxiliary predicates for the hashes library 32-bit algorithms.
logtalk_load(hashes(loader))static, context_switching_callsPublic predicatesï
word32_hex/2ï
Converts a 32-bit word into an 8-digit lowercase hexadecimal atom.
staticword32_hex(Word,Hex)word32_hex(+integer,-atom) - onebytes_hex/2ï
Converts a list of bytes into a lowercase hexadecimal atom.
staticbytes_hex(Bytes,Hex)bytes_hex(+list(integer),-atom) - onemask32/1ï
Returns the 32-bit mask value.
staticmask32(Mask)mask32(-integer) - oneadd32/3ï
Adds two integers modulo 2^32.
staticadd32(A,B,Sum)add32(+integer,+integer,-integer) - oneadd32/4ï
Adds three integers modulo 2^32.
staticadd32(A,B,C,Sum)add32(+integer,+integer,+integer,-integer) - oneadd32/5ï
Adds four integers modulo 2^32.
staticadd32(A,B,C,D,Sum)add32(+integer,+integer,+integer,+integer,-integer) - onemul32/3ï
Multiplies two integers modulo 2^32.
staticmul32(A,B,Product)mul32(+integer,+integer,-integer) - onerol32/3ï
Rotates a 32-bit word left by the given number of bits.
staticrol32(Value,Shift,Rotated)rol32(+integer,+integer,-integer) - oneror32/3ï
Rotates a 32-bit word right by the given number of bits.
staticror32(Value,Shift,Rotated)ror32(+integer,+integer,-integer) - onelittle_endian_word32/2ï
Decodes four bytes in little-endian order into a 32-bit word.
staticlittle_endian_word32(Bytes,Word)little_endian_word32(+list(integer),-integer) - onebig_endian_word32/2ï
Decodes four bytes in big-endian order into a 32-bit word.
staticbig_endian_word32(Bytes,Word)big_endian_word32(+list(integer),-integer) - oneinteger_to_little_endian_bytes32/2ï
Encodes a 32-bit word into four bytes in little-endian order.
staticinteger_to_little_endian_bytes32(Integer,Bytes)integer_to_little_endian_bytes32(+integer,-list(integer)) - oneinteger_to_big_endian_bytes32/2ï
Encodes a 32-bit word into four bytes in big-endian order.
staticinteger_to_big_endian_bytes32(Integer,Bytes)integer_to_big_endian_bytes32(+integer,-list(integer)) - onepad_md/4ï
Pads a message using MD-style padding with a little-endian or big-endian length field.
staticpad_md(Endian,Bytes,LengthFieldBytes,PaddedBytes)pad_md(+little_big,+list(integer),+integer,-list(integer)) - oneProtected predicatesï
(no local declarations; see entity ancestors if any)
Private predicatesï
(no local declarations; see entity ancestors if any)
Operatorsï
(none)