# CKKS multiplication turns a two-part ciphertext into three parts and doubles the error

Original title: CKKS – Addition and Multiplication

> Hacker News story 50119819 · language: en · submitted 2026-10-16
> Web version: https://zeli.app/story/50119819
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 10 · by [ibobev](<https://news.ycombinator.com/user?id=ibobev>) · 💬 0
[original](<https://www.jeremykun.com/2026/10/11/ckks-addition-and-multiplication/>) · [HN discussion](<https://news.ycombinator.com/item?id=50119819>)

## Summary

In this tutorial installment, I implement ciphertext addition and multiplication for the CKKS homomorphic encryption scheme using a 64-bit modulus. Addition is simple: add the polynomial pairs, and the error grows linearly. Multiplication, however, produces a three-tuple ciphertext whose decryption involves the square of the secret key, causing error to grow quadratically and the scaling factor to square. I show the code and tests, and explain why rescaling and relinearization are needed next.

## Key quote

> Multiplication causes error to grow (at least) quadratically.

---

## Cite

- Page: https://zeli.app/story/50119819
- Date: 2026-10-16
- Source: jeremykun.com (https://www.jeremykun.com/2026/10/11/ckks-addition-and-multiplication/)
- Hacker News: https://news.ycombinator.com/item?id=50119819

## Other languages

- zh: https://zeli.app/zh/story/50119819 · markdown: https://zeli.app/zh/story/50119819.md
- ja: https://zeli.app/ja/story/50119819 · markdown: https://zeli.app/ja/story/50119819.md
- ko: https://zeli.app/ko/story/50119819 · markdown: https://zeli.app/ko/story/50119819.md
- de: https://zeli.app/de/story/50119819 · markdown: https://zeli.app/de/story/50119819.md
- es: https://zeli.app/es/story/50119819 · markdown: https://zeli.app/es/story/50119819.md
- ru: https://zeli.app/ru/story/50119819 · markdown: https://zeli.app/ru/story/50119819.md
