Windows PowerShell command on Get-command RSA_generate_key
MyWebUniversity

Manual Pages for UNIX Operating System command usage for man RSA_generate_key

OpenSSL RSA_generate_key(3openssl)

NNNNAAAAMMMMEEEE

RSA_generate_key - generate RSA key pair

SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS

#include

RSA *RSA_generate_key(int num, unsigned long e,

void (*callback)(int,int,void *), void *cb_arg);

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN

RSA_generate_key() generates a key pair and returns it in a

newly allocated RRRRSSSSAAAA structure. The pseudo-random number

generator must be seeded prior to calling

RSA_generate_key().

The modulus size will be nnnnuuuummmm bits, and the public exponent will be eeee. Key sizes with nnnnuuuummmm < 1024 should be considered insecure. The exponent is an odd number, typically 3, 17 or 65537. A callback function may be used to provide feedback about the progress of the key generation. If ccccaaaallllllllbbbbaaaacccckkkk is not NNNNUUUULLLLLLLL, it will be called as follows: +o While a random prime number is generated, it is called

as described in BN_generate_prime(3).

+o When the n-th randomly generated prime is rejected as

not suitable for the key, ccccaaaallllllllbbbbaaaacccckkkk((((2222,,,, nnnn,,,, ccccbbbb_aaaarrrrgggg)))) is

called.

+o When a random p has been found with p-1 relatively prime

to eeee, it is called as ccccaaaallllllllbbbbaaaacccckkkk((((3333,,,, 0000,,,, ccccbbbb_aaaarrrrgggg)))).

The process is then repeated for prime q with ccccaaaallllllllbbbbaaaacccckkkk((((3333,,,, 1111,,,,

ccccbbbb_aaaarrrrgggg)))).

RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE

If key generation fails, RSA_generate_key() returns NNNNUUUULLLLLLLL;

the error codes can be obtained by ERR_get_error(3).

BBBBUUUUGGGGSSSS

ccccaaaallllllllbbbbaaaacccckkkk((((2222,,,, xxxx,,,, ccccbbbb_aaaarrrrgggg)))) is used with two different meanings.

RSA_generate_key() goes into an infinite loop for illegal

input values. SSSSEEEEEEEE AAAALLLLSSSSOOOO

ERR_get_error(3), rand(3), rsa(3), RSA_free(3)

25/Sep/2002 Last change: 0.9.8o 1

OpenSSL RSA_generate_key(3openssl)

HHHHIIIISSSSTTTTOOOORRRRYYYY

The ccccbbbb_aaaarrrrgggg argument was added in SSLeay 0.9.0.

25/Sep/2002 Last change: 0.9.8o 2




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™