I recently read Squeamish Ossifrage's answer on generating RSA keys from (short) randomness where they make the following comment:
(You might want to keep the certificate secret too.)
As the answer talks about multiple primality tests, let's start with a simpler one: The Pocklington-Lehmer test.
So my question:
Assuming we are given a semiprime $n$ of unknown factorization and a Pocklington Certificate of primality for either one of $n$'s prime factors. Can we efficiently factor $n$?
Here's a summary of Pocklington's theorem / criterion:
Let $n$ be the number of which we want to prove primality. Then a list of pairs pair $(a_i,p_i)$ is the pocklington-lehmer certificate for the primality of $n$ if
- $\prod_i p_i>\sqrt n$ that is the product of the $p_i$ is larger than the square root of $n$
- $\exists B: n-1=B\cdot \prod_i p_i$, that is the product of the $p_i$ is a factor of $n-1$
- $\forall i: p_i\in\mathbb P$, that is, every single $p_i$ is a prime itself (this primality can be proven recursively using this theorem or a list of known primes)
- $\forall i:a_i^{p_i}\equiv 1\pmod n$
- $\forall i:\gcd(a^{(n-1)/p_i}_i-1,n)=1$