provided key data, such as I<n>, I<e> and I<d> for a minimal RSA
keypair.
-These functions use an B<EVP_PKEY_CTX> context, which should primarly
+These functions use an B<EVP_PKEY_CTX> context, which should primarily
be created with L<EVP_PKEY_CTX_new_from_name(3)> or
L<EVP_PKEY_CTX_new_id(3)>.
* and secure application is expected to use BIGNUMs, and to build
* this array dynamically.
*/
- const unsigned long rsa_n = 0xbc747fc5;
- const unsigned long rsa_e = 0x10001;
- const unsigned long rsa_d = 0x7b133399;
- const OSSL_PARAM[] = {
+ unsigned long rsa_n = 0xbc747fc5;
+ unsigned long rsa_e = 0x10001;
+ unsigned long rsa_d = 0x7b133399;
+ OSSL_PARAM params[] = {
OSSL_PARAM_ulong("n", &rsa_n),
OSSL_PARAM_ulong("e", &rsa_e),
OSSL_PARAM_ulong("d", &rsa_d),
OSSL_PARAM_END
};
-
+
int main()
{
EVP_PKEY_CTX *ctx = EVP_PKEY_CTX_new_from_name(NULL, "RSA", NULL);