{ "info": { "author": "Phil Demetriou", "author_email": "inbox@philonas.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "Intended Audience :: Telecommunications Industry", "License :: OSI Approved :: BSD License", "Programming Language :: C", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Topic :: Security", "Topic :: Security :: Cryptography", "Topic :: Utilities" ], "description": "SipHash CFFI\n============\n\n`SipHash `__ is a family of pseudorandom\nfunctions (i.e.\u00a0keyed hash functions) optimized for speed on short\nmessages, designed by `Jean-Philippe Aumasson `__\nand `Daniel J. Bernstein `__.\n\nThis package provides tested, performant **Python 3** CFFI bindings to\nthe `SipHash 2-4 reference\nimplementation `__ by `Jean-Philippe\nAumasson `__ (including support for\ndouble-output-size and half-word variants) along with extensions to\nsupport tweakable numbers of compression and finalization rounds.\n\nInstallation\n============\n\nYou can install this package using ``pip`` or the included ``setup.py``\nscript:\n\n::\n\n # Using pip\n pip install siphash-cffi\n\n # Using setup.py\n python setup.py install\n\nUsage\n=====\n\n.. code:: python\n\n from siphash import *\n\n # Demonstration key and data\n key = b\"\\0\" * 16\n data = b\"\\0\" * 64\n\n # SipHash-2-4 working with 64-bit words and a 64-bit output length\n output = siphash_64(key, data)\n\n # SipHash-2-4 working with 64-bit words and a 128-bit output length\n output = siphash_128(key, data)\n\n # SipHash-2-4 working with 32-bit words and a 32-bit output length\n output = half_siphash_32(key, data)\n\n # SipHash-2-4 working with 32-bit words and a 64-bit output length\n output = half_siphash_64(key, data)\n\n # SipHash-4-8 working with 64-bit words and a 64-bit output length\n output = siphash_64(key, data, 4, 8)\n\n # SipHash-4-8 working with 64-bit words and a 128-bit output length\n output = siphash_128(key, data, 4, 8)\n\n # SipHash-4-8 working with 32-bit words and a 32-bit output length\n output = half_siphash_32(key, data, 4, 8)\n\n # SipHash-4-8 working with 32-bit words and a 64-bit output length\n output = half_siphash_64(key, data, 4, 8)\n\nLicense\n=======\n\n.. code:: text\n\n BSD 3-Clause License\n\n Copyright (c) 2018, Phil Demetriou\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n * Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kpdemetriou/siphash-cffi", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "siphash-cffi", "package_url": "https://pypi.org/project/siphash-cffi/", "platform": "", "project_url": "https://pypi.org/project/siphash-cffi/", "project_urls": { "Homepage": "https://github.com/kpdemetriou/siphash-cffi" }, "release_url": "https://pypi.org/project/siphash-cffi/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Tested, performant SipHash bindings for Python 3 with support for double-output-size, half-word and variable-round variants.", "version": "0.1.3" }, "last_serial": 4002175, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f28b9eb8d7bea5b7444cc8917762fbb0", "sha256": "53ba4affeea4dc9372e7d83b48447183e3418e9aa093717ed1d60dcaa226695f" }, "downloads": -1, "filename": "siphash-cffi-0.1.0.zip", "has_sig": false, "md5_digest": "f28b9eb8d7bea5b7444cc8917762fbb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14308, "upload_time": "2018-06-25T15:33:11", "url": "https://files.pythonhosted.org/packages/c4/96/cb63c7f52260b9f537fa01fe65847350871a4f82642f7efff5fd38ba1ecd/siphash-cffi-0.1.0.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5e4e150ad0255064f42ac4b622bbf4a8", "sha256": "2ba8f6cedcd7a7002a5323dba3f45e4ffe8c9847c95b7efd88d3d8acb18e1f7f" }, "downloads": -1, "filename": "siphash-cffi-0.1.1.zip", "has_sig": false, "md5_digest": "5e4e150ad0255064f42ac4b622bbf4a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14313, "upload_time": "2018-06-25T16:01:14", "url": "https://files.pythonhosted.org/packages/a8/66/0e8f03dd8ac0124f02c5ca49f0890801455fb3b1e4ba27d1d53434820528/siphash-cffi-0.1.1.zip" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a66447f6bfd2acb7f82eccaa96c5a51c", "sha256": "e7da1a29ec4d9adb45ef9ed13a622841c567f8d2af40554004c52fda6fffb22e" }, "downloads": -1, "filename": "siphash-cffi-0.1.2.zip", "has_sig": false, "md5_digest": "a66447f6bfd2acb7f82eccaa96c5a51c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14337, "upload_time": "2018-06-26T00:09:19", "url": "https://files.pythonhosted.org/packages/9b/68/865a7455f60a9c9faeed944c32fa9cc03a34ffba095851fee0b12d195fd9/siphash-cffi-0.1.2.zip" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "7a0b4be66fce14cf465f0b2643dd09b6", "sha256": "6b817e78d5af7a795e962c1353b206f94f58898e72dc8b06065d87f48e812579" }, "downloads": -1, "filename": "siphash-cffi-0.1.3.zip", "has_sig": false, "md5_digest": "7a0b4be66fce14cf465f0b2643dd09b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14887, "upload_time": "2018-06-26T01:08:46", "url": "https://files.pythonhosted.org/packages/08/ce/88fe4ca396b280d5c38f9bdef2c95d99c343ef7c4477663aaa7d062d9e0c/siphash-cffi-0.1.3.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7a0b4be66fce14cf465f0b2643dd09b6", "sha256": "6b817e78d5af7a795e962c1353b206f94f58898e72dc8b06065d87f48e812579" }, "downloads": -1, "filename": "siphash-cffi-0.1.3.zip", "has_sig": false, "md5_digest": "7a0b4be66fce14cf465f0b2643dd09b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14887, "upload_time": "2018-06-26T01:08:46", "url": "https://files.pythonhosted.org/packages/08/ce/88fe4ca396b280d5c38f9bdef2c95d99c343ef7c4477663aaa7d062d9e0c/siphash-cffi-0.1.3.zip" } ] }