ae.utils.digest

Data digest (hashes etc.)

Public Imports

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

Members

Aliases

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

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

murmurHash3_128
alias murmurHash3_128 = murmurHash3_x86_128
Undocumented in source.

Functions

HMAC_MD5
auto HMAC_MD5(ubyte[] key, ubyte[] message)
Undocumented in source. Be warned that the author may not have intended to support it.
HMAC_SHA1
auto HMAC_SHA1(ubyte[] key, ubyte[] message)
Undocumented in source. Be warned that the author may not have intended to support it.
HMAC_SHA256
auto HMAC_SHA256(ubyte[] key, ubyte[] message)
Undocumented in source. Be warned that the author may not have intended to support it.
digestToStringMH3
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
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
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
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
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
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>