encyclopegia.org

Speck (cipher)

Speck is part of a family of lightweight block ciphers publicly released by the National Security Agency (NSA) in June 2013.[src] Speck has been optimized for performance in software implementations, while its sister algorithm, Simon, has been optimized for hardware implementations.[src] Speck is an add–rotate–xor (ARX) cipher.[src] The NSA began working on the Simon and Speck ciphers in 2011.[src] The agency anticipated some agencies in the US federal government would need a cipher that would operate well on a diverse collection of Internet of Things devices while maintaining an acceptable level of security.[src]

Speck is part of a family of lightweight block ciphers publicly released by the National Security Agency (NSA) in June 2013.[src] Speck has been optimized for performance in software implementations, while its sister algorithm, Simon, has been optimized for hardware implementations.[src] Speck is an add–rotate–xor (ARX) cipher.[src] The NSA began working on the Simon and Speck ciphers in 2011.[src] The agency anticipated some agencies in the US federal government would need a cipher that would operate well on a diverse collection of Internet of Things devices while maintaining an acceptable level of security.[src] The following is the designers' reference implementation, written in C, of the Speck variant with a 128-bit block size and key, where key = (K[1], K[0]).[src] It is adapted from their IACR ePrint.[src] include define ROR(x, r) ((x >> r) | (x > (64 - r))) define R(x, y, k) (x = ROR(x, 8), x += y, x ^= k, y = ROL(y, 3), y ^= x) define ROUNDS 32 void encrypt(uint64_t ct[2], uint64_t const pt[2], uint64_t const K[2]) { uint64_t y = pt[0], x = pt[1], b = K[0], a = K[1]; R(x, y, b); for (int i = 0; i Note that this code computes the round keys (key schedule) on-demand.[src] In practice, as with other block ciphers it is common for implementations to compute the round keys just once and cache them, rather than recomputing them for every block encrypted or decrypted.[src] Although, as the authors point out, "Given that small code size was a major goal of the design, it made sense to reuse the round function for round key generation.[src] This approach enables on-the-fly round key generation for microcontroller implementations, using just the round function code, very little ROM, and no RAM beyond what is required to hold the key and plaintext." For 16-bit words (Speck32), the rotates are 7 bits right and 2 bits left; for all other word sizes, they are 8 and 3 as shown here.[src] If the key is more than 2 words long, there are 2 or 3 a values, which are used in rotation.[src]

17 sentences · 17 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Speck (cipher)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/speck-cipher. Accessed 26 November 2026.

Chicago

"Speck (cipher)." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/speck-cipher.

APA

encyclopegia.org. (2026). Speck (cipher). Retrieved November 26, 2026, from https://encyclopegia.org/wiki/speck-cipher

Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
release date2013Wikipedia

Related articles

Vigenère cipher

stub · references available

Karsten Speck

stub · references available

Hermann Speck von Sternburg

stub · references available

Artur Speck

stub · references available

Bacon's cipher

stub · references available

Tyrolean Speck

stub · references available

Feistel cipher

stub · references available

Product cipher

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1373261920 · 0.5 · snapshot enwiki-001373261920

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.