RSA_new.pod 925 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. =head1 RETURN VALUES
  14. If the allocation fails, RSA_new() returns B<NULL> and sets an error
  15. code that can be obtained by L<ERR_get_error(3)|ERR_get_error(3)>. Otherwise it returns
  16. a pointer to the newly allocated structure.
  17. RSA_free() returns no value.
  18. =head1 SEE ALSO
  19. L<ERR_get_error(3)|ERR_get_error(3)>, L<rsa(3)|rsa(3)>,
  20. L<RSA_generate_key(3)|RSA_generate_key(3)>,
  21. L<RSA_new_method(3)|RSA_new_method(3)>
  22. =head1 HISTORY
  23. RSA_new() and RSA_free() are available in all versions of SSLeay and OpenSSL.
  24. =cut