ArticleslgStudy

computer science

S2n-tls

S2n-tls is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand S2n-tls rather than just read about it. In short: s2n-tls, originally named s2n, is an open-source C99 implementation of the Transport Layer Security (TLS) protocol developed by Amazon Web Services (AWS) and initially released in 2015. The goal was to make the code—about 6,000 lines long—easier to review than that of OpenSSL—with 500,000 lines, 70,000 of which are involved in processing TLS.

S2n-tls — main illustration
S2n-tls — illustration

Key takeaways

  • S2n-tls belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect S2n-tls to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of S2n-tls from memory before moving on to harder problems.

Reference excerpt

s2n-tls, originally named s2n, is an open-source C99 implementation of the Transport Layer Security (TLS) protocol developed by Amazon Web Services (AWS) and initially released in 2015. The goal was to make the code—about 6,000 lines long—easier to review than that of OpenSSL—with 500,000 lines, 70,000 of which are involved in processing TLS.

History s2n was first released in June 2015 on GitHub. AWS said that the name "s2n" stands for signal to noise as a nod "to the almost magical act of encryption—disguising meaningful signals, like your critical data, as seemingly random noise". In 2022 AWS renamed it from s2n to s2n-tls. It has been the subject of several external reviews as well as penetration testing. Galois, Inc. has conducted formal verification of components of s2n-tls. In 2015, independent security researchers described a variant of the Lucky Thirteen attack against s2n, even though s2n included countermeasures intended to prevent timing attacks. In response, Amazon's s2n team said it would remove CBC-mode cipher suites and take code from BoringSSL to replace its own CBC-mode decryption. The AWS Security Blog said that the attack could not have been exploited against Amazon, AWS, or its customers, including because the cited versions of s2n had not been used in a production environment. In February 2017, Amazon announced that s2n was now handling 100% of SSL traffic for Amazon S3.

Features

TLS extensions Common TLS extensions supported by this software are Server Name Indication, Application-Layer Protocol Negotiation, and Online Certificate Status Protocol.

Cryptography s2n-tls supports the main ciphers in use today, such as AES in CBC and GCM modes, 3DES, and RC4. It also provides support for perfect forward secrecy through Diffie–Hellman or Elliptic-curve Diffie–Hellman ephemeral keys. Weaker ciphers and key exchange modes are disabled by default.

Language bindings The language bindings below were not developed by AWS:

Lua: LuaJIT 2.0 binding Python: CyS2N

See also

Comparison of TLS implementations

References

Illustrations

S2n-tls illustration

Worked examples

Example 1 — a first encounter with S2n-tls

Start with the simplest possible case. Write down what S2n-tls claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to S2n-tls before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about S2n-tls ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of S2n-tls

In research
S2n-tls appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses S2n-tls in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
S2n-tls is common in secondary-school and first-year university syllabi. It links to neighbouring topics C (programming language) libraries, Cryptographic software, Free security software, so understanding it makes those chapters shorter.
In everyday life
Look for S2n-tls outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “S2n-tls” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study S2n-tls in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what S2n-tls means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain S2n-tls out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is S2n-tls in simple terms?

s2n-tls, originally named s2n, is an open-source C99 implementation of the Transport Layer Security (TLS) protocol developed by Amazon Web Services (AWS) and initially released in 2015. The goal was to make the code—about 6,000 lines long—easier to review than that of OpenSSL—with 500,000 lines, 70…

Why does S2n-tls matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study S2n-tls?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on S2n-tls.

Tags

  • C (programming language) libraries
  • Cryptographic software
  • Free security software
  • Transport Layer Security implementation

Keep exploring