in reply to Usage problem with Crypt::DH::GMP::priv_key( )
Afterthought: Or perhaps you'll need to call it by its fully qualified name:my $string = priv_key($DH_private);
However, I know nothing of this module's functionality, and I couldn't find any example of priv_key() usage in either the documentation or the test suite.my $string = Crypt::DH::GMP::priv_key($DH_private);
Update: And all that essentially does is express the value contained in PerlCryptDHGMP *dh as a base 10 string, and then return that string (packed with extra 0's as needed).char * PerlCryptDHGMP_priv_key( PerlCryptDHGMP *dh ) { return PerlCryptDHGMP_mpz2sv_str(PerlCryptDHGMP_PRIVKEY_PTR(dh), 1 +0, NULL); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Usage problem with Crypt::DH::GMP::priv_key( )
by Llew_Llaw_Gyffes (Scribe) on Mar 08, 2016 at 05:05 UTC | |
by Llew_Llaw_Gyffes (Scribe) on Mar 08, 2016 at 14:54 UTC |