0
$\begingroup$

Let us assume three entities: $A, B,$ and $C$, and let $[p_C, P_c]$ the private/public key pair of $C$. Assume that $A$ encrypts a message $m$ using the public key of $C$, $P_C$, and sends this encrypted message $c$ to $B$.

My question is: can $B$ somehow discriminate that the encrypted message $c$ is the result of the public-key encryption of a value with the public key $P_c$? (public keys are public, so known to everybody).

$\endgroup$
3
  • 2
    $\begingroup$ @JohnDeters actually an unclear question since the public key cryptosystem is not defined! $\endgroup$
    – kelalaka
    Commented Dec 10, 2021 at 18:49
  • $\begingroup$ To solve my problem, I am actually looking at the properties of the encrypted message itself, without considering any metadata. I left the public key cryptosystem intentionally general, just because I am looking for a public key cryptosystem which allows you to have this property (sort of proof that a specific public key has been used). $\endgroup$ Commented Dec 10, 2021 at 20:49
  • $\begingroup$ That was unclear from your question. Why do you need this? $\endgroup$
    – kelalaka
    Commented Dec 10, 2021 at 22:59

3 Answers 3

1
$\begingroup$

If you encrypt the message using the public key of C entity (P_c) and send it on B through entity A, the entity B could not decrypt the m to understand it content because the encrypted key belongs to another entity and not in the entity of B. So when B receive the encrypted message, will try to decrypt it using private key of B but because the m is encrypted with public key of C, B will not manage to decrypt it and will drop it.

$\endgroup$
1
  • $\begingroup$ What happens if TextBook RSA is used? The PKC is not defined, so unclear question. $\endgroup$
    – kelalaka
    Commented Dec 10, 2021 at 18:51
1
$\begingroup$

can B somehow discriminate that the encrypted message m is the result of the public-key encryption of a value with the public key P_c?

It depends on the public key algorithm. With RSA, for example, the encrypted session key value (which is public) is always less than the value of the RSA encryption modulus (which is also public) used to encrypt it.

If it is the case that key C's public RSA modulus is greater than keys A and B's, then a session key encrypted by key C could also be greater than A and B's public modulus. In such a case it would be known neither key A nor key B could have produced it.

$\endgroup$
2
  • 1
    $\begingroup$ Have you ever heard RSA-KEM? $\endgroup$
    – kelalaka
    Commented Dec 10, 2021 at 20:17
  • $\begingroup$ @kelalaka I don't see how RSA-KEM and (e.g.) RSA-OAEP are different for this answer. Either way, the possible range of RSA ciphertexts is different for different keys, and that can be a practical distinguisher if you have enough ciphertexts relative to the number of potential keys. $\endgroup$ Commented Dec 11, 2021 at 9:23
0
$\begingroup$

No, it's not possible to B to know anything about the message itself, unless it contains metadata. The message itself is just a opaque block of binary data. It's possible to infer the algorithm used for encrypting, but not much more than that.

If the message have metadata describing it, things change. But they change only because there's a field somewhere saying "Encrypted by A using C public key", not because any intrinsic property of the message.

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.