vedadux / configurable-LED

The LED Block Cipher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Configurable LED Block Cipher

LED Specification

Purpose

This implementation is meant for security research purposes only, and should not be used in production. It supports both encryption and decryption.

Build

To build Configurable LED you will need:

  • CMake version 3.7.3 or newer
  • a C11 compliant C compiler

The project enforces out of source builds, so you can build it as follows:

mkdir build && cd build;
cmake .. && make;

Usage

  • 64-bit key:
    • ./led-64 -e -x "01234567 89abcdef" -k "01234567 89abcdef"
      Will produce ciphertext: fdd6fb98 45f81456
    • ./led-64 -d -x "fdd6fb98 45f81456" -k "01234567 89abcdef"
      Will produce plaintext: 01234567 89abcdef
  • 128-bit key:
    • ./led-128 -e -x "01234567 89abcdef" -k "01234567 89abcdef 01234567 89abcdef"
      Will produce ciphertext: 3131c231 205c3664
    • ./led-128 -d -x "3131c231 205c3664" -k "01234567 89abcdef 01234567 89abcdef"
      Will produce plaintext: 01234567 89abcdef

About

The LED Block Cipher

License:MIT License


Languages

Language:C 94.6%Language:CMake 4.8%Language:Shell 0.6%