Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dh_generate_key(3) [centos man page]

DH_generate_key(3)						      OpenSSL							DH_generate_key(3)

NAME
DH_generate_key, DH_compute_key - perform Diffie-Hellman key exchange SYNOPSIS
#include <openssl/dh.h> int DH_generate_key(DH *dh); int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh); DESCRIPTION
DH_generate_key() performs the first step of a Diffie-Hellman key exchange by generating private and public DH values. By calling DH_compute_key(), these are combined with the other party's public value to compute the shared key. DH_generate_key() expects dh to contain the shared parameters dh->p and dh->g. It generates a random private DH value unless dh->priv_key is already set, and computes the corresponding public value dh->pub_key, which can then be published. DH_compute_key() computes the shared secret from the private DH value in dh and the other party's public value in pub_key and stores it in key. key must point to DH_size(dh) bytes of memory. RETURN VALUES
DH_generate_key() returns 1 on success, 0 otherwise. DH_compute_key() returns the size of the shared secret on success, -1 on error. The error codes can be obtained by ERR_get_error(3). SEE ALSO
dh(3), ERR_get_error(3), rand(3), DH_size(3) HISTORY
DH_generate_key() and DH_compute_key() are available in all versions of SSLeay and OpenSSL. 1.0.1e 2013-02-11 DH_generate_key(3)

Check Out this Related Man Page

DH_generate_key(3)						      OpenSSL							DH_generate_key(3)

NAME
DH_generate_key, DH_compute_key - perform Diffie-Hellman key exchange SYNOPSIS
#include <openssl/dh.h> int DH_generate_key(DH *dh); int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh); DESCRIPTION
DH_generate_key() performs the first step of a Diffie-Hellman key exchange by generating private and public DH values. By calling DH_compute_key(), these are combined with the other party's public value to compute the shared key. DH_generate_key() expects dh to contain the shared parameters dh->p and dh->g. It generates a random private DH value unless dh->priv_key is already set, and computes the corresponding public value dh->pub_key, which can then be published. DH_compute_key() computes the shared secret from the private DH value in dh and the other party's public value in pub_key and stores it in key. key must point to DH_size(dh) bytes of memory. RETURN VALUES
DH_generate_key() returns 1 on success, 0 otherwise. DH_compute_key() returns the size of the shared secret on success, -1 on error. The error codes can be obtained by ERR_get_error(3). SEE ALSO
dh(3), ERR_get_error(3), rand(3), DH_size(3) HISTORY
DH_generate_key() and DH_compute_key() are available in all versions of SSLeay and OpenSSL. 50 2013-03-05 DH_generate_key(3)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

third party scarlets not working

hi, I have downloaded and installed some third party screenlets, when i am launching the liga screenlet i am not getting any thing , even not displaying any thing . and some like "word of the day " "quote of the day " are not working correctly. (1 Reply)
Discussion started by: saikoushik
1 Replies

2. UNIX for Dummies Questions & Answers

third party screenlets are not working

hi, I have downloaded and installed some third party screenlets, when i am launching the liga screenlet i am not getting any thing , even not displaying any thing . and some like "word of the day " "quote of the day " are not working correctly. (2 Replies)
Discussion started by: saikoushik
2 Replies

3. UNIX for Advanced & Expert Users

shared pointers

I am new to shared pointer conceot in C++ and hence require some clarification: For example: class A { public: virtual ~A() { } int x; }; typedef boost::shared_ptr<A>... (1 Reply)
Discussion started by: uunniixx
1 Replies

4. UNIX for Advanced & Expert Users

.so to .sl conversion ?

Hi all, I have one libxxx.so file ( which I got from a third party ). We use shared library libxxx.sl . Is there any way to convert the .so file to .sl file ? Thanks in advance - M (3 Replies)
Discussion started by: kanu_kanu
3 Replies

5. Shell Programming and Scripting

exchange values in a table - exchange numbers

Hello all, This is a bit simple but I cannot do it! I have a big table of values between 0 and 1. some cells have NA instead of having any value. I want to exchange all values with "1" and write "0" for all "NA" . for changing "NA" to zero I used sed: sed -i 's/NA/0/g' input.txt But... (3 Replies)
Discussion started by: @man
3 Replies

6. Shell Programming and Scripting

Wget vs Curl - Proxy issue

Hi, My script needs to crawl the data from a third party site. Currently it is written in wget. The third party site is of shared interface with different IP addresses. My wget works with all the IP address but not with one. Whereas the curl is able to hit that IP address and comes out... (2 Replies)
Discussion started by: sathyaonnuix
2 Replies