awslabs / aws-encryption-sdk-specification

AWS Encryption SDK Specification
Other
30 stars 27 forks source link

Determine how/where/if the Raw RSA Keyring checks that public/private keys match #167

Open MatthewBennington opened 4 years ago

MatthewBennington commented 4 years ago

Follows issue #91

Definitions: "match", "matching pair" describe an interoperable RSA public key, and RSA private key (i.e. a ciphertext encrypted by the public key can be decrypted by the private key).

Background: The Raw RSA Keyring accepts a public key and/or a private key. When both keys are provided, it makes sense to ensure they match, and fail if they don't. However, checking if two keys match is a non-trivial operation (depending on language).

Several approaches have been proposed: