Hawkynt

FNAm2-512 (DarkCrypt)

FNAm2-512 block cipher from the DarkCrypt Total Commander plugin. A 128-bit-block / 512-bit-key ARX-with-multiply construction: 64 sequential steps mix the four little-endian words using key-derived subkeys built from 32-bit multiplication.

Properties

Property Value
Category Block Ciphers
Sub-category Block Cipher
Security status 🎓 Educational Only
Complexity Intermediate
Inventor Alexander Myasnikov (DarkCrypt / Zarya)
Year 2013
Origin 🇷🇺 Russia
Source algorithms/block/darkcrypt-fnam2.js

Parameters

Parameter Supported values
Key sizes 64 bytes (512 bits)
Block sizes 16 bytes (128 bits)

Security

Status: 🎓 Educational Only

Known vulnerabilities

Issue Description Mitigation
Non-standard cipher Custom ARX-with-multiply design of unknown provenance; unanalyzed and not recommended for real use. Use AES or another vetted cipher.

Documentation

Test vectors

3 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 — DarkCrypt Fnam2 — zero key/plaintext

Field Value
key 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000
input 00000000000000000000000000000000
expected e7dbfb251bf0fcfb302602cc2cfe03f2

Vector 2 — DarkCrypt Fnam2 — incrementing key/plaintext

Field Value
key 000102030405060708090a0b0c0d0e0f 101112131415161718191a1b1c1d1e1f 202122232425262728292a2b2c2d2e2f 303132333435363738393a3b3c3d3e3f
input 000102030405060708090a0b0c0d0e0f
expected 838b7b06c845801344698e2fd3b89fc0

Vector 3 — DarkCrypt Fnam2 — shifted incrementing key/plaintext

Field Value
key 0102030405060708090a0b0c0d0e0f10 1112131415161718191a1b1c1d1e1f20 2122232425262728292a2b2c2d2e2f30 3132333435363738393a3b3c3d3e3f40
input 101112131415161718191a1b1c1d1e1f
expected 7baf2995776dab041609d53a6b4b59c7

← All algorithms