Note: This question looks like my other question — Any algorithm with a master key for decrypting private key encrypted messages? — which is perfectly answered by @real-or-random, but this one is different in how subkeys are generated.
Assume the following:
- Create a pair of master private/public key
- Create a private/public subkey #1 based on the master public key
- Create a private/public subkey #2 based on the master public key
- Encrypt data #1 with public subkey #1
- Encrypt data #2 with public subkey #2
- Possible to decrypt data #1 with both private subkey #1 and master private key
- Possible to decrypt data #2 with both private subkey #2 and master private key
- Impossible to decrypt data #1 with private subkey #2
- Impossible to decrypt data #2 with private subkey #1
Is there any algorithm out there that implements the above scenario?