[+] Added a check that the size of the public and/or private key is 0, then...
[+] Added a check that the size of the public and/or private key is 0, then memory is not allocated, because for example we have an OAES key and neither the field with the public nor the private key is filled in. And because of this, tests are lying around.