Implementation of the UMAC algorithm defined by RFC 4418
Project description
UMAC
This Python package provides an implementation of the UMAC algorithm defined by RFC 4418.
It supports Python 3.11 and later.
Installation
This package is available on PyPI under the name umac.
Usage
The API loosely follows the PEP 247 standard.
from umac import UMAC
mac = UMAC(
digest_size=4, # Using UMAC-32
key=b"abcdefghijklmnop",
nonce=b"bcdefghi",
)
mac.update(b"aaa")
digest = mac.digest()
print(digest.hex())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file umac-1.0-py3-none-any.whl.
File metadata
- Download URL: umac-1.0-py3-none-any.whl
- Upload date:
- Size: 55.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e01a5edb0337d801f96e82fc3387a025aacd74caa688741ff561d1e5e9fe158
|
|
| MD5 |
ff92fad7d513331167b4608b708f2aec
|
|
| BLAKE2b-256 |
04abab212d3d58cc911f54a0b9a62f3d110a7622dfac6625f7f760da40d37f44
|
Provenance
The following attestation bundles were made for umac-1.0-py3-none-any.whl:
Publisher:
publish.yml on slietar/umac
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
umac-1.0-py3-none-any.whl -
Subject digest:
8e01a5edb0337d801f96e82fc3387a025aacd74caa688741ff561d1e5e9fe158 - Sigstore transparency entry: 714520305
- Sigstore integration time:
-
Permalink:
slietar/umac@e96d945fb0cd94e8db8238b87dfae6af5b4fffeb -
Branch / Tag:
refs/tags/1.0 - Owner: https://github.com/slietar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e96d945fb0cd94e8db8238b87dfae6af5b4fffeb -
Trigger Event:
push
-
Statement type: