openpgp-pqc / draft-openpgp-pqc

Repository of the WIP draft-ietf-openpgp-pqc
Other
8 stars 2 forks source link

IND-CCA2 for ECC-KEM and KEM Combiner #36

Closed fluppe2 closed 1 year ago

fluppe2 commented 1 year ago

What has been added or changed:

a) Pointed to the Bertoni/Daemen/Peters/Assche paper "On the Indifferentiability of the Sponge Construction" for Keccak since this has a stable DOI b) Defined IND-CCA2 secure KEM combiner according to the Giacon/Heuer/Poettering paper "KEM Combiners" and added security considerations for this c) Aligned x25519kem and x448kem to RFC7748, splitted the description to be more readable d) Defined IND-CCA2 secure ECC-KEMs according to the Cramer/Shoup paper "Design and Analysis of Practical Public-Key Encryption Schemes Secure against Adaptive Chosen Ciphertext Attack" and added security considerations for this e) Removed the words "native", "masking", "clamping" concerning x25519, x448 as they are nowhere defined and might not be comprehensible, instead defined to simply follow the encodings of RFC7748 f) Added "oBits=256" into the call of "multiKeyCombine" of the composite KEM encryption and decryption procedure as the KEK needs to be specified

@wussler: Are you okay with c) and e)?

@ahuelsing: Are you okay with a)? Can you check b)? Can you check also d)?

@falko-strenzke, @TJ-91: Are you okay with f)? What did you guys implement? Did you implicitely assume this?

TJ-91 commented 1 year ago

@falko-strenzke, @TJ-91: Are you okay with f)? What did you guys implement? Did you implicitely assume this?

I think the clarification is useful 👍 Since we use AES-256 key wrap, this is the only possible size for the KEK. Making it explicit is better.

fluppe2 commented 1 year ago

Let me try to explain my approach with an IND-CCA2 version of the ECC-KEMs in conjunction with the KEM combiner.

Just trying to do state-of-the-art crypto. The modular approach allows for nice and clean security arguments backed up by the present scientific literature. The more tailored approach with IND-CPA versions of ECC-KEMs and (potential) CCA2-security established by the KEM combiner could be a bit more involved.

wussler commented 1 year ago

@fluppe2 I addressed the comments we had today in the call, please review the latest changes and when you're OK we can merge :rocket:

Edit: there also is still an open thread from Andreas, but IMO no change is needed there

fluppe2 commented 1 year ago

I would say the mentioning of rho is fine for now, I think it is still a moving target how we reference the PQ specs, since we are waiting for the final standards.