{
  "id": "2024/1083",
  "url": "https://opencryptology.org/2024/1083",
  "original_url": "https://eprint.iacr.org/2024/1083",
  "title": "LEA Block Cipher in Rust Language: Trade-off between Memory Safety and Performance",
  "authors": [
    "Sangwon Kim",
    "Siwoo Eum",
    "Minho Song",
    "Hwajeong Seo"
  ],
  "affiliations": null,
  "abstract": "Cryptography implementations of block cipher have been  written in C language due to its strong features on system-friendly features. However, the C language  is prone to memory safety issues, such as buffer overflows and memory leaks. On the other hand, Rust, novel system programming language, provides strict compile-time memory safety guarantees through its ownership model. This paper presents the implementation of LEA block cipher in Rust language, demonstrating  features to prevent common memory vulnerabilities while maintaining performance. We compare the Rust implementation with the traditional C language version, showing that while Rust incurs a reasonable memory overhead, it achieves comparable the execution timing of encryption and decryption. Our results highlight Rust’s suitability for secure cryptographic applications, striking the balance between memory safety and execution efficiency.",
  "category": "Implementation",
  "license": {
    "code": "CC0",
    "url": "https://creativecommons.org/publicdomain/zero/1.0/",
    "label": "CC0 1.0",
    "attribution": "“LEA Block Cipher in Rust Language: Trade-off between Memory Safety and Performance” by Sangwon Kim, Siwoo Eum, Minho Song, Hwajeong Seo, Cryptology ePrint Archive, Paper 2024/1083, https://eprint.iacr.org/2024/1083. Licensed under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-07-03T06:48:49Z",
    "updated": "2024-07-03T06:48:49Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1083.pdf",
    "sha256": "79cabe0a6e03b8e57291b5d4f5f3d590c6099f69439d80669d69fcc50c27d2ee",
    "size": 201735,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/1083/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1083.pdf",
      "size": 201735,
      "sha256": "79cabe0a6e03b8e57291b5d4f5f3d590c6099f69439d80669d69fcc50c27d2ee",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1083.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 201735
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20240705031158id_/https://eprint.iacr.org/2024/1083.pdf",
      "captured_at": "2024-07-05T03:11:58Z",
      "size": 196538
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1083,\n      author = {Sangwon Kim and Siwoo Eum and Minho Song and Hwajeong Seo},\n      title = {LEA Block Cipher in Rust Language: Trade-off between Memory Safety and Performance},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1083},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1083}\n}"
}
