Re: Keys and Certificates creations

Peter Gutmann <[email protected]> Thu, 07 Feb 2013 02:03:03 +1300
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
David Pierre <[email protected]> writes:

>So I wonder 512b keys are forbidden in cryptlib, or am I doing it wrong ?

512-bit keys offer no real security, so you can't use them.

>For El Gamal, the key generation works fine, but when i want to generate a
>certificate (simple certificate as described in manual p:147), I have a -26
>error code on :

ElGamal isn't defined for use with X.509, so you can't use it in a
certificate.

>And finally, with ECDSA and ECDH, I can't even create a key because :
>
>status = cryptCreateContext( cryptContext, CRYPT_UNUSED, CRYPT_ALGO_ECDSA );
>
>Fails, with a -20 error code.

To use the ECC algorithms you need to define USE_ECC when you build cryptlib.
In any case you won't be able to create a certificate for ECDH because it's a
key-agreement algorithm only.

Peter.

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.