Functions |
| R_PKEY_CTX* R_CDECL | R_PKEY_get_PKEY_CTX (R_PKEY *pkey) |
| | Returns the R_PKEY_CTX for the R_PKEY structure pkey. More...
|
| int R_CDECL | R_PKEY_get_type (R_PKEY *pkey) |
| | Returns the type for the asymmetric key pkey. More...
|
| int R_CDECL | R_PKEY_new (R_PKEY_CTX *ctx, R_PKEY_TYPE pkeytype, R_PKEY **pkey) |
| | Creates a new R_PKEY structure pkey. More...
|
| int R_CDECL | R_PKEY_free (R_PKEY *pkey) |
| | Removes all allocated memory for the R_PKEY structure pkey. More...
|
| int R_CDECL | R_PKEY_copy (R_PKEY *new_pkey, R_PKEY *pkey, int flag) |
| | Copies a public key. More...
|
| int R_CDECL | R_PKEY_from_binary (R_PKEY_CTX *pkey_ctx, int flag, R_PKEY_TYPE type, unsigned int max_buf_len, const unsigned char *buf, unsigned int *consumed_len, R_PKEY **pkey) |
| | Creates an R_PKEY structure from the specified binary data in ASN.1 format indicated by buf with a length of max_buf_len. More...
|
| int R_CDECL | R_PKEY_to_binary (R_PKEY *pkey, unsigned int max_buf_len, unsigned char *buf, unsigned int *consumed_len) |
| | Creates binary Basic Encoding Rules (BER)/Distinguished Encoding Rules (DER) encoded data from the specified R_PKEY structure and places the binary output in buf. More...
|
| int R_CDECL | R_PKEY_from_public_key_binary (R_PKEY_CTX *pkey_ctx, int flag, R_PKEY_TYPE type, unsigned int max_buf_len, const unsigned char *buf, unsigned int *consumed_len, R_PKEY **pkey) |
| | Creates a new R_PKEY structure from the public key component of the binary data buf. More...
|
| int R_CDECL | R_PKEY_to_public_key_binary (R_PKEY *pkey, unsigned int max_buf_len, unsigned char *buf, unsigned int *out_len) |
| | Creates the binary data of the public key component of an R_PKEY structure pkey. More...
|
| int R_CDECL | R_PKEY_reference_inc (R_PKEY *pkey) |
| | Increments the reference count for the specified R_PKEY structure pkey. More...
|
| int R_CDECL | R_PKEY_cmp (R_PKEY *key1, R_PKEY *key2) |
| | Compares two keys key1 and key2. More...
|
| int R_CDECL | R_PKEY_public_cmp (R_PKEY *key1, R_PKEY *key2) |
| | Compares the public components of two keys key1 and key2. More...
|
| int R_CDECL | R_PKEY_get_info (R_PKEY *pkey, int id, void *param) |
| | Returns identified data for the R_PKEY pkey. More...
|
| int R_CDECL | R_PKEY_set_info (R_PKEY *pkey, int type, void *param) |
| | Sets data for the R_PKEY pkey. More...
|
| int R_CDECL | R_PKEY_iterate_fields (R_PKEY *pkey, R_PKEY_CB_T *func, void *arg) |
| | Applies the callback function func with callback argument arg to each field in the key pkey. More...
|
| int R_CDECL | R_PKEY_get_num_bits (R_PKEY *pkey) |
| | Returns the number of bits in an asymmetric key for the R_PKEY structure pkey. More...
|
| int R_CDECL | R_PKEY_get_num_primes (R_PKEY *pkey) |
| | Returns the number of primes contained in the RSA private key for the R_PKEY structure pkey. More...
|
| int R_CDECL | R_PKEY_generate_simple (R_PKEY_CTX *pkey_ctx, R_PKEY **rpkey, int type, int num_bits, int modifier, int flags, R_SURRENDER *surrender) |
| | Generates a new public/private key pair pkey. More...
|
| int R_CDECL | R_PKEY_from_file (R_PKEY_CTX *pkey_ctx, R_PKEY **pkey, char *filename, int type, R_FORMAT format) |
| | Creates an R_PKEY structure from the specified private key binary data in ASN.1 format indicated by filename with a private key type type. More...
|
| int R_CDECL | R_PKEY_TYPE_to_string (R_PKEY_TYPE type, unsigned int max_str_len, char *str) |
| | Returns the key type string for the key type type. More...
|
| int R_CDECL | R_PKEY_TYPE_from_string (R_PKEY_TYPE *type, char *str) |
| | Returns the key type for the string str. More...
|
| int R_CDECL | R_PKEY_FORMAT_to_string (R_PKEY_FORMAT format, unsigned int max_str_len, char *str) |
| | Returns the key format string for the key format format. More...
|
| int R_CDECL | R_PKEY_FORMAT_from_string (char *str, R_PKEY_FORMAT *format) |
| | Returns the key format for the string str. More...
|
| int R_CDECL | R_PKEY_to_bio (BIO *bio, R_PKEY *pkey, R_FORMAT format, char *cipher) |
| | Outputs the R_PKEY structure pkey to the bio in the format specified by format. More...
|
| int R_CDECL | R_PKEY_print (BIO *bio, R_PKEY *pkey, R_FORMAT format, char *format_arg) |
| | Prints an R_PKEY structure from the specified binary data in ASN.1 format indicated by bio with a format of format and format arguments format_arg. More...
|
| int R_CDECL | R_PKEY_from_bio (BIO *bio, R_PKEY_CTX *pkey_ctx, R_PKEY **pkey, int type, R_FORMAT format) |
| | Creates an R_PKEY structure from the specified private key binary data in ASN.1 format indicated by bio with a format of format. More...
|