Thanks @SEJPM. Yeah, it is kind of tricky. We have to envision future attacks (many of which we have not thought of), and then we try to harden against them. Its not the easiest task. The browser plug-in [and malicious Javascript] came from the shared memory requirement.
@SEJPM So in the SC4-HSM case I was thinking along the lines of an integrated encryption scheme, similar to DLIES or ECIES. In the IES's, half of the key exchange has been performed. Decryption occurs by performing the other half of the key exhange to arrive at the shared secret. The shared secret is then subsequently used during decryption.
Thanks @SEJPM. Any ideas on where to find an updated implementation or the patches? I'd like to see what the team considers the state of the art. I feel like there's something fishy with the 2011 sources being considered the latest revision.
In an effort to share a learning resource; is it appropriate to post links to external sites? What is the right way to post a link to a learning resource?
For example;
SHA256 spreadsheet