Skip to content

dnicolodi/python-siphash24

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
September 11, 2022 00:10
March 3, 2023 11:58
December 5, 2022 12:25
November 21, 2022 20:27
November 21, 2022 20:27
March 3, 2023 11:58
November 21, 2022 20:27
November 21, 2022 20:27
September 11, 2022 00:10

siphash24: Streaming-capable SipHash Implementation

This module provides a C-based implementation of SipHash with an interface compatible with the hash functions provided by the hashlib standard library module. SipHash-1-3 and SipHash-2-4 variants are currently implemented. The module documentation provides a detailed description of the API.

This module differs from other similar modules by providing a streaming-capable implementation and an interface compatible to the hash functions provided by the hashlib standard library module and by providing binary wheels for all supported Python releases on the most common platforms. More platforms can be added to the build job as needed.

Following the hashlib interface, the return value of the digest() method is a bytes object. SipHash values are customarily stored as 64-bit integers. This module extends the hashlib interface with an additional intdigest() method that returns the hash values as a 64-bit signed int object.

This module is implemented as a thin Cython-based wrapper around a C language SipHash implementation copied, with minimal modifications to allow compilation with MSCV, from the c-siphash library by David Rheinsberg and co-authors. The c-siphash library is based on the SipHash reference implementation by Jean-Philippe Aumasson and Daniel J. Bernstein released to the Public Domain. This module is distributed with the same license as the c-siphash library: Apache-2.0 or LGPL-2.1-or-later.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published