Ascon MAC

Ascon-Mac produces a 128-bit (16-byte) message authentication code as part of the Ascon family standardised by NIST in SP 800-232. It provides authentication for messages using a secret key, ensuring both data integrity and authenticity.

Input: Text (UTF-8) or original file bytesResult: Text

Text input

Run to see the result

Examples

Example keys and passwords are public test material.

Published Ascon-Mac v1.3 KAT Count 3

Input

3a393a862889fd2bcc4a2939.bin

2 bytes

Download

Expected answer

2fbf6e4b9f38f5833796d00ab74b7cae
Key
{"option":"Hex","string":"000102030405060708090A0B0C0D0E0F"}
Published Ascon-Mac v1.3 KAT Count 4

Input

29076ae7ed6040c5991a4752.bin

3 bytes

Download

Expected answer

46a48dba27848ee3b4ddc97c79d15835
Key
{"option":"Hex","string":"000102030405060708090A0B0C0D0E0F"}
Published Ascon-Mac v1.3 KAT Count 6

Input

eac170b3d79eb67627a4775d.bin

5 bytes

Download

Expected answer

7e809217641965a1f418e422fd5ba8ab
Key
{"option":"Hex","string":"000102030405060708090A0B0C0D0E0F"}
invalid key length

Input

test

Expected rejection

Message contains
Invalid key length: 8 bytes.

Ascon-Mac requires a key of exactly 16 bytes (128 bits).
Key
{"option":"Hex","string":"0001020304050607"}
NIST KAT Count=2 (Msg=0x10)

Input

c555eab45d08845ae9f10d45.bin

1 bytes

Download

Expected answer

e5be5b6dfb7b0e3eae00a070791947a8
Key
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
NIST KAT Count=5 (Msg=0x10111213)

Input

a00291e8229d191815f2cbd2.bin

4 bytes

Download

Expected answer

727f6386405a52ad7ca0669a6a885294
Key
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
NIST KAT Count=1 (empty message)

Input

Expected answer

eac9d74bbedf8bf1eba2862b26aa6d39
Key
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}

Ascon is designed for lightweight cryptography on constrained devices such as IoT sensors and embedded systems.

Format reference: Ascon MAC background and specification

Related tools

Browse hashing tools