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?
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?