Manual Pages for UNIX Darwin command on man EVP_PKEY_assign_EC_KEY
MyWebUniversity

Manual Pages for UNIX Darwin command on man EVP_PKEY_assign_EC_KEY

EVPPKEYset1RSA(3) OpenSSL EVPPKEYset1RSA(3)

NAME

EVPPKEYset1RSA, EVPPKEYset1DSA, EVPPKEYset1DH, EVPPKEYset1ECKEY, EVPPKEYget1RSA, EVPPKEYget1DSA, EVPPKEYget1DH, EVPPKEYget1ECKEY, EVPPKEYassignRSA, EVPPKEYassignDSA, EVPPKEYassignDH, EVPPKEYassignECKEY,

EVPPKEYtype - EVPPKEY assignment functions.

SYNOPSIS

#include

int EVPPKEYset1RSA(EVPPKEY *pkey,RSA *key); int EVPPKEYset1DSA(EVPPKEY *pkey,DSA *key); int EVPPKEYset1DH(EVPPKEY *pkey,DH *key); int EVPPKEYset1ECKEY(EVPPKEY *pkey,ECKEY *key); RSA *EVPPKEYget1RSA(EVPPKEY *pkey); DSA *EVPPKEYget1DSA(EVPPKEY *pkey); DH *EVPPKEYget1DH(EVPPKEY *pkey); ECKEY *EVPPKEYget1ECKEY(EVPPKEY *pkey); int EVPPKEYassignRSA(EVPPKEY *pkey,RSA *key); int EVPPKEYassignDSA(EVPPKEY *pkey,DSA *key); int EVPPKEYassignDH(EVPPKEY *pkey,DH *key); int EVPPKEYassignECKEY(EVPPKEY *pkey,ECKEY *key); int EVPPKEYtype(int type);

DESCRIPTION

EVPPKEYset1RSA(), EVPPKEYset1DSA(), EVPPKEYset1DH() and EVPPKEYset1ECKEY() set the key referenced by ppkkeeyy to kkeeyy. EVPPKEYget1RSA(), EVPPKEYget1DSA(), EVPPKEYget1DH() and EVPPKEYget1ECKEY() return the referenced key in ppkkeeyy or NNUULLLL if the key is not of the correct type. EVPPKEYassignRSA() EVPPKEYassignDSA(), EVPPKEYassignDH() and EVPPKEYassignECKEY() also set the referenced key to kkeeyy however these use the supplied kkeeyy internally and so kkeeyy will be freed when the parent ppkkeeyy is freed. EVPPKEYtype() returns the type of key corresponding to the value

ttyyppee. The type of a key can be obtained with EVPPKEYtype(pkey->type).

The return value will be EVPPKEYRSA, EVPPKEYDSA, EVPPKEYDH or EVPPKEYEC for the corresponding key types or NIDundef if the key type is unassigned. NNOOTTEESS In accordance with the OpenSSL naming convention the key obtained from or assigned to the ppkkeeyy using the 11 functions must be freed as well as ppkkeeyy. EVPPKEYassignRSA() EVPPKEYassignDSA(), EVPPKEYassignDH() EVPPKEYassignECKEY() are implemented as macros.

RETURN VALUES

EVPPKEYset1RSA(), EVPPKEYset1DSA(), EVPPKEYset1DH() and EVPPKEYset1ECKEY() return 1 for success or 0 for failure. EVPPKEYget1RSA(), EVPPKEYget1DSA(), EVPPKEYget1DH() and EVPPKEYget1ECKEY() return the referenced key or NNUULLLL if an error occurred. EVPPKEYassignRSA() EVPPKEYassignDSA(), EVPPKEYassignDH() and EVPPKEYassignECKEY() return 1 for success and 0 for failure.

SEE ALSO

EVPPKEYnew(3) HISTORY TBA

0.9.7l 2002-10-09 EVPPKEYset1RSA(3)




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