DelphiEncryptionCompendium
DelphiEncryptionCompendium copied to clipboard
No sNoKeyMaterialGiven Exception if Context.KeySize=0
There can be ciphers which do not allow a key and are not NULL ciphers. For example, "ROT13". Therefore, the Exception sNoKeyMaterialGiven must not be thrown if Context.KeySize = 0.
This PR also adds (not (FMode = cmGCM))
to the AnsiString case. I guess you forgot it?