Changeset View
Changeset View
Standalone View
Standalone View
b/tests/pubkey.c
Context not available. | |||||
int rc; | int rc; | ||||
rc = gcry_sexp_new (&key_spec, | rc = gcry_sexp_new (&key_spec, | ||||
"(genkey (rsa (nbits 4:1024)))", 0, 1); | "(genkey (rsa (nbits 4:2048)))", 0, 1); | ||||
if (rc) | if (rc) | ||||
die ("error creating S-expression: %s\n", gcry_strerror (rc)); | die ("error creating S-expression: %s\n", gcry_strerror (rc)); | ||||
rc = gcry_pk_genkey (&key, key_spec); | rc = gcry_pk_genkey (&key, key_spec); | ||||
Context not available. | |||||
int rc; | int rc; | ||||
rc = gcry_sexp_new (&key_spec, | rc = gcry_sexp_new (&key_spec, | ||||
"(genkey (rsa (nbits 4:1024)(use-x931)))", 0, 1); | "(genkey (rsa (nbits 4:2048)(use-x931)))", 0, 1); | ||||
if (rc) | if (rc) | ||||
die ("error creating S-expression: %s\n", gcry_strerror (rc)); | die ("error creating S-expression: %s\n", gcry_strerror (rc)); | ||||
rc = gcry_pk_genkey (&key, key_spec); | rc = gcry_pk_genkey (&key, key_spec); | ||||
Context not available. |