DSA_dup_DH.pod 948 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 VALUES
  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)>.
  14. =head1 NOTE
  15. Be careful to avoid small subgroup attacks when using this.
  16. =head1 SEE ALSO
  17. L<DH_new(3)>, L<DSA_new(3)>, L<ERR_get_error(3)>
  18. =head1 COPYRIGHT
  19. Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
  20. Licensed under the OpenSSL license (the "License"). You may not use
  21. this file except in compliance with the License. You can obtain a copy
  22. in the file LICENSE in the source distribution or at
  23. L<https://www.openssl.org/source/license.html>.
  24. =cut