{ "info": { "author": "Phil Demetriou", "author_email": "inbox@philonas.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "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": "Spectral AEAD\n=============\n\nSpectral is algorithm for authenticated encryption with associated data;\nit uses\n`Speck `__\nin `CTR\nmode `__\nas the underlying cipher (with a 128-bit block size and a 128-bit key\nsize) along with\n`HMAC `__-`SHA256 `__\nin an `Encrypt-then-MAC `__\nconstruction.\n\nThis package provides tested, performant **Python 3** CFFI bindings to\nan implementation of Spectral, including abstractions for simplified\nencryption and decryption.\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 spectral-aead\n\n # Using setup.py\n python setup.py install\n\nUsage\n=====\n\n.. code:: python\n\n from spectral import *\n\n # Demonstration key, nonce, plaintext and associated data\n key = b\"\\0\" * spectral.KEY_SIZE\n nonce = b\"\\0\" * spectral.NONCE_SIZE\n plaintext = b\"\\0\" * 16\n associated = b\"\\0\" * 16\n\n # Spectral simplified encryption\n encrypted = encrypt(key, plaintext, associated) # Associated data is optional\n\n # Spectral simplified decryption\n computed_plaintext = decrypt(key, encrypted, associated) # Raises RuntimeError if any parameter has been tampered with\n assert plaintext == computed_plaintext\n\n # Spectral disjoint encryption\n ciphertext, mac = encrypt_disjoint(key, nonce, plaintext, associated) # Associated data is optional\n\n # Spectral disjoint decryption\n computed_plaintext = decrypt_disjoint(key, nonce, ciphertext, mac, associated) # Raises RuntimeError if any parameter has been tampered with\n assert plaintext == computed_plaintext\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/spectral-aead", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "spectral-aead", "package_url": "https://pypi.org/project/spectral-aead/", "platform": "", "project_url": "https://pypi.org/project/spectral-aead/", "project_urls": { "Homepage": "https://github.com/kpdemetriou/spectral-aead" }, "release_url": "https://pypi.org/project/spectral-aead/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "An algorithm for authenticated encryption with associated data using Speck and HMAC-SHA256.", "version": "0.0.5" }, "last_serial": 4017892, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ec464059e9b2070a6550bc581cb99ceb", "sha256": "34bbb9880859a975407508b270c78f3349257c47bcece7de48bb2a740f87f9c1" }, "downloads": -1, "filename": "spectral-aead-0.0.1.zip", "has_sig": false, "md5_digest": "ec464059e9b2070a6550bc581cb99ceb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12625, "upload_time": "2018-06-25T15:41:58", "url": "https://files.pythonhosted.org/packages/b4/bf/75fbc2e9b95cfdf90c6d5f287cfd58e00a33d7cbd8e5de9e44e1b9f6aa8d/spectral-aead-0.0.1.zip" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d7c564d26450b67c9650aae083648dcf", "sha256": "9c4b9323a1229013394ecb94667745e05b3863663703ecea21d4461eefccaba9" }, "downloads": -1, "filename": "spectral-aead-0.0.2.zip", "has_sig": false, "md5_digest": "d7c564d26450b67c9650aae083648dcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12646, "upload_time": "2018-06-25T16:02:19", "url": "https://files.pythonhosted.org/packages/3b/f2/1a368a359918c5267708edb336ffdc759fca12997092730869c63d46e1c7/spectral-aead-0.0.2.zip" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "d7b4ba0402df9ca85e9fe877c1fdcee6", "sha256": "770e2e24e54c58491b834589c983520bdef6c41c55a8313f25d5fd9dad64c702" }, "downloads": -1, "filename": "spectral-aead-0.0.3.zip", "has_sig": false, "md5_digest": "d7b4ba0402df9ca85e9fe877c1fdcee6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12671, "upload_time": "2018-06-26T00:08:28", "url": "https://files.pythonhosted.org/packages/eb/d1/34bb137f8905fab53eaf6512f4290336c9dfd59c1aa52f22d366d77e4af4/spectral-aead-0.0.3.zip" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "dc10dd86c2060d7d94f084fdf84e65c0", "sha256": "f6a701fb323e4fbc76969c21ab713b6a7bc3250d2fd64855445e26d9a272e76b" }, "downloads": -1, "filename": "spectral-aead-0.0.4.zip", "has_sig": false, "md5_digest": "dc10dd86c2060d7d94f084fdf84e65c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13235, "upload_time": "2018-06-26T01:14:05", "url": "https://files.pythonhosted.org/packages/8d/6b/c75a181eb80a7508a5e71a2bf6d33132d9d00ab49c477359ce8a707b12ff/spectral-aead-0.0.4.zip" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "0403a2d8b6bb7768537d9fef7b525f85", "sha256": "d828d171097c42fc10a88da68760b72816d276690b063999f89db254531c83b9" }, "downloads": -1, "filename": "spectral-aead-0.0.5.zip", "has_sig": false, "md5_digest": "0403a2d8b6bb7768537d9fef7b525f85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13259, "upload_time": "2018-06-30T09:55:22", "url": "https://files.pythonhosted.org/packages/6b/c2/4448a734c52bdae7f8ecd19fbd96435eb05a293517e944b06a301456f6e4/spectral-aead-0.0.5.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0403a2d8b6bb7768537d9fef7b525f85", "sha256": "d828d171097c42fc10a88da68760b72816d276690b063999f89db254531c83b9" }, "downloads": -1, "filename": "spectral-aead-0.0.5.zip", "has_sig": false, "md5_digest": "0403a2d8b6bb7768537d9fef7b525f85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13259, "upload_time": "2018-06-30T09:55:22", "url": "https://files.pythonhosted.org/packages/6b/c2/4448a734c52bdae7f8ecd19fbd96435eb05a293517e944b06a301456f6e4/spectral-aead-0.0.5.zip" } ] }