RSA_new.pod 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. =pod
  2. =head1 NAME
  3. RSA_new, RSA_free - allocate and free RSA objects
  4. =head1 SYNOPSIS
  5. #include <openssl/rsa.h>
  6. RSA *RSA_new(void);
  7. void RSA_free(RSA *rsa);
  8. =head1 DESCRIPTION
  9. RSA_new() allocates and initializes an B<RSA> structure. It is equivalent to
  10. calling RSA_new_method(NULL).
  11. RSA_free() frees the B<RSA> structure and its components. The key is
  12. erased before the memory is returned to the system.
  13. If B<rsa> is NULL nothing is done.
  14. =head1 RETURN VALUES
  15. If the allocation fails, RSA_new() returns B<NULL> and sets an error
  16. code that can be obtained by L<ERR_get_error(3)>. Otherwise it returns
  17. a pointer to the newly allocated structure.
  18. RSA_free() returns no value.
  19. =head1 SEE ALSO
  20. L<ERR_get_error(3)>,
  21. L<RSA_generate_key(3)>,
  22. L<RSA_new_method(3)>
  23. =head1 COPYRIGHT
  24. Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
  25. Licensed under the Apache License 2.0 (the "License"). You may not use
  26. this file except in compliance with the License. You can obtain a copy
  27. in the file LICENSE in the source distribution or at
  28. L<https://www.openssl.org/source/license.html>.
  29. =cut