2
0

DSA_dup_DH.pod 713 B

123456789101112131415161718192021222324252627282930313233343536
  1. =pod
  2. =head1 NAME
  3. DSA_dup_DH - create a DH structure out of DSA structure
  4. =head1 SYNOPSIS
  5. #include <openssl/dsa.h>
  6. DH * DSA_dup_DH(const DSA *r);
  7. =head1 DESCRIPTION
  8. DSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q
  9. is lost during that conversion, but the resulting DH parameters
  10. contain its length.
  11. =head1 RETURN VALUE
  12. DSA_dup_DH() returns the new B<DH> structure, and NULL on error. The
  13. error codes can be obtained by L<ERR_get_error(3)|ERR_get_error(3)>.
  14. =head1 NOTE
  15. Be careful to avoid small subgroup attacks when using this.
  16. =head1 SEE ALSO
  17. L<dh(3)|dh(3)>, L<dsa(3)|dsa(3)>, L<ERR_get_error(3)|ERR_get_error(3)>
  18. =head1 HISTORY
  19. DSA_dup_DH() was added in OpenSSL 0.9.4.
  20. =cut