ae.utils.digest

Data digest (hashes etc.)

Public Imports

std.digest.md
deprecated public import std.digest.md;

Members

Aliases

MH3Digest128
deprecated alias MH3Digest128 = uint[4]
Undocumented in source.
murmurHash3_128
deprecated alias murmurHash3_128 = murmurHash3_x64_128

Select version optimized for target platform. WARNING: Output depends on platform.

murmurHash3_128
deprecated alias murmurHash3_128 = murmurHash3_x86_128
Undocumented in source.

Functions

HMAC_MD5
deprecated auto HMAC_MD5(ubyte[] key, ubyte[] message)
Undocumented in source. Be warned that the author may not have intended to support it.
HMAC_SHA1
deprecated auto HMAC_SHA1(ubyte[] key, ubyte[] message)
Undocumented in source. Be warned that the author may not have intended to support it.
HMAC_SHA256
deprecated auto HMAC_SHA256(ubyte[] key, ubyte[] message)
Undocumented in source. Be warned that the author may not have intended to support it.
digestToStringMH3
deprecated string digestToStringMH3(MH3Digest128 digest)
Undocumented in source. Be warned that the author may not have intended to support it.
fastCRC
uint fastCRC(void[] data, uint start)

Inlinable CRC32 implementation.

hmac_sha1
deprecated ubyte[] hmac_sha1(string message, ubyte[] privateKey)
Undocumented in source. Be warned that the author may not have intended to support it.
murmurHash2
uint murmurHash2(void[] data, uint seed)

D port of MurmurHash2A. TODO: reimplement via std.digest

murmurHash3_32
deprecated uint murmurHash3_32(void[] data, uint seed)
Undocumented in source. Be warned that the author may not have intended to support it.
murmurHash3_x64_128
deprecated MH3Digest128 murmurHash3_x64_128(void[] data, uint seed)
Undocumented in source. Be warned that the author may not have intended to support it.
murmurHash3_x86_128
deprecated MH3Digest128 murmurHash3_x86_128(void[] data, uint seed)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

MurmurHash2A
struct MurmurHash2A

D port of MurmurHash2A. TODO: reimplement via std.digest

Templates

HMAC
deprecated template HMAC(alias Algorithm, size_t blockSize)

HMAC digest with a hash algorithm.

getDigestString
template getDigestString(Digest)

Get digest string of given data. Short-hand for std.digest.md5Of (and similar) and toHexString. Similar to the old std.md5.getDigestString.

Variables

crc32Table
uint[256] crc32Table;

Inlinable CRC32 implementation.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>