> For the complete documentation index, see [llms.txt](https://ir0nstone.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ir0nstone.gitbook.io/notes/cryptography/overview/public-exponent-attacks/multi-party-rsa-with-small-e.md).

# Multi-party RSA with Small e

Assuming $$e$$ is constant between the messages and the message $$m$$ is sent to at least $$e$$ people, we can use the Chinese Remainder Theorem to retrieve $$m$$.

In single-party RSA, we calculate $$c = m^e \mod N$$. Let's pretend this is extrapolated to 3 people:

$$
m^e = c\_1 \mod N\_1 \\
m^e = c\_2 \mod N\_2 \ m^e = c\_3 \mod N\_3 \\
$$

​The Chinese Remainder Theorem allows us to solve this congruence $$\mod N\_1N\_2N\_3$$. Since $$m < \min{N\_1, N\_2, N\_3}$$, we know that $$m^e < N\_1N\_2N\_3$$. Once we use the Chinese Remainder Theorem to compute $$m^e \mod N\_1N\_2N\_3$$, we just take the $$e$$th root to retrieve $$m$$.​


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ir0nstone.gitbook.io/notes/cryptography/overview/public-exponent-attacks/multi-party-rsa-with-small-e.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
