KEY_SIZE_RANGE

5/11/2017 10:30:43 PM
Gravatar
Total Posts 9

KEY_SIZE_RANGE

Hi

I am using the snippet at the wiki, to create KeyPair.

I get KEY_SIZE_RANGE error.

 

5/15/2017 10:27:55 AM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: KEY_SIZE_RANGE

in this line:

templatePub.Add(new ObjectAttribute(ObjectAttribute.CKA_MODULUS_BITS,0));

try to use 1024 or 2048 instead of 0

 

5/15/2017 7:27:54 PM
Gravatar
Total Posts 9

Re: KEY_SIZE_RANGE

thanks, now i get "ATTRIBUTE_TYPE_INVALID"