Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Cryptography

HMAC + BLAKE3 + SHA-3/Keccak + Poly1305 + BLAKE2 Keyed MAC Construction Linter

· Last updated:2026-09-23

Compute and audit MACs across HMAC-SHA-2/SHA-3, keyed BLAKE2, BLAKE3, KMAC and Poly1305 with official known-answer self-tests, key/tag-length linting and a cross-construction compatibility matrix.

Details

What this tool helps you do

Every tag is produced by a verified implementation: HMAC uses OpenSSL via node:crypto; BLAKE2/BLAKE3/KMAC/Poly1305 run as pure TypeScript checked against the official BLAKE2 KAT, BLAKE3 test vectors, NIST SP 800-185 KMAC samples, RFC 8439 §2.5.2 and FIPS 202. Security levels follow NIST SP 800-107 (HMAC strength = min(key bits, hash output bits), forgery bound 2^(t/2) for a kept tag of t bits), SP 800-185 (KMAC = min(key, 2·tag, c/2 bits)) and RFC 8439 (Poly1305 one-time, ≤ 8⌈L/16⌉/2^106).

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Cryptography
Input types
textarea, select, text, number
Output type
html
Sample coverage
4
API ready
Yes

Overview

The Keyed MAC Construction Linter computes and evaluates message authentication tags across HMAC (SHA-2, SHA-3), keyed BLAKE2, BLAKE3, KMAC, and Poly1305. It validates implementations against official known-answer test vectors and flags weak key lengths, insecure truncation, or construction mismatches in an interactive security report.

When to use

  • Evaluating key sizes, tag lengths, and security bounds for API webhook signatures or token signing.
  • Cross-checking custom MAC implementations against official NIST, RFC, and BLAKE test vectors.
  • Auditing tag truncation risks when reducing authentication tag sizes below 128 bits.

How it works

  1. 1Supply the input payload using plain UTF-8 text or raw hexadecimal bytes.
  2. 2Provide an authentication key in hex along with optional tag truncation byte length and domain-separation labels.
  3. 3The engine executes HMAC via OpenSSL and pure TypeScript implementations of BLAKE2, BLAKE3, KMAC, and Poly1305 checked against official test vectors.
  4. 4Review the generated report showing output tags, effective security strength in bits, lint warnings, and known-answer test statuses.

Use cases

  • Verifying webhook signature implementations against canonical RFC 4231 and NIST test vectors.
  • Benchmarking tag truncation security trade-offs for embedded systems or bandwidth-constrained network protocols.
  • Configuring domain-separated MAC architectures using KMAC custom strings or BLAKE3 key derivation contexts.

Examples

1. Full Construction Audit with 32-Byte Key

Security Engineer

Background

An API engineer wants to compare HMAC-SHA-256, BLAKE3, KMAC256, and Poly1305 outputs for standard 32-byte secret keys.

Problem

Verify that all cryptographic primitives compute identical expected values and pass known-answer tests.

How to use

Enter the payload message, provide a 32-byte hex key, specify a 32-byte tag length, and set a custom context label.

Message: 'The quick brown fox jumps over the lazy dog'
Key (hex): '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f'
Kept tag length: 32
Domain label: 'myapi/v1/webhook'

Outcome

Generates complete MAC tags across all ten constructions, verifies green status on all self-tests, and computes BLAKE3 subkey derivations.

2. Truncation Linting on Legacy 20-Byte Key

Backend Developer

Background

A legacy system uses an RFC 4231-style 20-byte key and truncates MAC tags to 12 bytes to reduce header overhead.

Problem

Check which MAC algorithms support 20-byte keys and determine if 12-byte truncation meets baseline security requirements.

How to use

FAQ

Which keyed hash and MAC constructions are evaluated?

The tool audits HMAC (SHA-256, SHA-512, SHA3-256, SHA3-512), keyed BLAKE2s/BLAKE2b, BLAKE3 keyed hashing, KMAC128/KMAC256, and Poly1305.

Why are BLAKE3 or Poly1305 marked as skipped in my report?

BLAKE3 keyed hashing and Poly1305 strictly mandate a 32-byte (256-bit) key and will not execute with keys of other lengths.

How are cryptographic security levels calculated?

Security levels follow NIST SP 800-107 (min of key bits and hash output), NIST SP 800-185 for KMAC, and RFC 8439 for Poly1305 bounds.

What happens when tag length is truncated?

The tag is shortened to the requested byte count and the linter calculates the reduced forgery resistance bound, issuing warnings if kept bits fall below 128.

What is the custom label field used for?

The custom label sets the KMAC customization string and the BLAKE3 context string for domain separation and subkey derivation.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Validation

MAC Address Samples

Collection of MAC addresses in various formats for validation testing

Media

Copyright-Free MP3 Audio Samples

Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio

Java

Android Image Processing Java Samples

Android Java image processing examples including reading/saving images, scaling, and format conversion

Kotlin

Android Image Processing Kotlin Samples

Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

Cryptography

Hash Algorithm Comparator

Hash the same input with MD5, SHA-1, SHA-256, SHA-512, BLAKE2b, and BLAKE3 at the same time and compare them side by side: output length, hex/Base64 digest, security status (broken / modern), and a relative speed benchmark. Great for teaching, choosing a hashing algorithm, or sanity-checking checksums.

Text Processing

Text Hash Generator

Compute MD5, SHA-1, SHA-256, SHA-512, and CRC-32 hashes of any text in one shot. Get both hex and Base64 digests over the UTF-8 encoding.

Cryptography

BLS Boneh–Lynn–Shacham Threshold Signature Aggregation + Distributed Key Generation Simulator

Simulate BLS12-381 BLS signatures end to end: Joint-Feldman DKG ceremonies, t-of-n threshold signing with Lagrange interpolation, the rogue-key attack and its proof-of-possession defense, and Ethereum 2 attestation aggregation.

Development

OAuth 2.0 / OIDC Authorization Code with PKCE Flow Visualizer

Simulate the Authorization Code flow with PKCE end to end: verifier/challenge generation, authorization URL, token exchange, ID Token validation checklist and an interception-attack demo.

Input the message, supply the 20-byte hex key, and set the kept tag length to 12 bytes.

Message: 'Hi There'
Key (hex): '0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b'
Kept tag length: 12

Outcome

Calculates compatible HMAC and BLAKE2 tags, skips 32-byte strict algorithms, and flags truncation warnings for sub-128-bit forgery bounds.