Skip to content

TTAK.KO-12.0223 Lightweight Encryption Algorithm (ISO/IEC 29192-2:2019) with Galois/Counter Mode (LEA-GCM)

License

Notifications You must be signed in to change notification settings

pedroalbanese/leacrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LEACrypt

ISC License GoDoc GitHub downloads Go Report Card GitHub go.mod Go version GitHub release (latest by date)

The Lightweight Encryption Algorithm (also known as LEA) is a 128-bit block cipher developed by South Korea in 2013 to provide confidentiality in high-speed environments such as big data and cloud computing, as well as lightweight environments such as IoT devices and mobile devices.

LEA is one of the cryptographic algorithms approved by the Korean Cryptographic Module Validation Program (KCMVP) and is the national standard of Republic of Korea (KS X 3246). LEA is included in the ISO/IEC 29192-2:2019 standard (Information security - Lightweight cryptography - Part 2: Block ciphers).

Command-line Lightweight Encryption Algorithm Utility

Usage of leacrypt:
leacrypt [-d] [-b N] -p "pass" [-i N] [-s "salt"] -f <file.ext>
  -a string
        Additional Authenticated Data.
  -b int
        Key length: 128, 192 or 256. (default 256)
  -d    Decrypt instead Encrypt.
  -f string
        Target file. ('-' for STDIN)
  -i int
        Iterations. (for PBKDF2) (default 1024)
  -k string
        Symmetric key to Encrypt/Decrypt.
  -m    Cipher-based message authentication code.
  -p string
        Password-based key derivation function 2.
  -r    Generate random cryptographic key.
  -s string
        Salt. (for PBKDF2)

Example of encryption/decryption:

./leacrypt -k "" -f plaintext.ext > ciphertext.ext
./leacrypt -d -k $256bitkey -f ciphertext.ext > plaintext.ext

License

This project is licensed under the ISC License.

Industrial-Grade Reliability. Copyright (c) 2020-2021 ALBANESE Research Lab.

About

TTAK.KO-12.0223 Lightweight Encryption Algorithm (ISO/IEC 29192-2:2019) with Galois/Counter Mode (LEA-GCM)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages