2000-01-12 06:35:21 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
crypto - OpenSSL cryptographic library
|
|
|
|
|
2016-06-01 00:20:08 +08:00
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
See the individual manual pages for details.
|
|
|
|
|
2000-01-12 06:35:21 +08:00
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2019-09-27 19:26:22 +08:00
|
|
|
The OpenSSL crypto library (C<libcrypto>) implements a wide range of
|
|
|
|
cryptographic algorithms used in various Internet standards. The services
|
|
|
|
provided by this library are used by the OpenSSL implementations of SSL, TLS
|
2000-01-12 06:35:21 +08:00
|
|
|
and S/MIME, and they have also been used to implement SSH, OpenPGP, and
|
|
|
|
other cryptographic standards.
|
|
|
|
|
2019-09-27 19:26:22 +08:00
|
|
|
C<libcrypto> consists of a number of sub-libraries that implement the
|
2000-01-12 06:35:21 +08:00
|
|
|
individual algorithms.
|
|
|
|
|
|
|
|
The functionality includes symmetric encryption, public key
|
|
|
|
cryptography and key agreement, certificate handling, cryptographic
|
2016-02-02 04:15:06 +08:00
|
|
|
hash functions, cryptographic pseudo-random number generator, and
|
|
|
|
various utilities.
|
2000-01-12 06:35:21 +08:00
|
|
|
|
2002-10-06 20:59:25 +08:00
|
|
|
=head1 NOTES
|
|
|
|
|
|
|
|
Some of the newer functions follow a naming convention using the numbers
|
|
|
|
B<0> and B<1>. For example the functions:
|
|
|
|
|
|
|
|
int X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev);
|
2016-08-01 01:38:09 +08:00
|
|
|
int X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj);
|
2002-10-06 20:59:25 +08:00
|
|
|
|
|
|
|
The B<0> version uses the supplied structure pointer directly
|
|
|
|
in the parent and it will be freed up when the parent is freed.
|
2019-09-27 19:26:22 +08:00
|
|
|
In the above example I<crl> would be freed but I<rev> would not.
|
2002-10-06 20:59:25 +08:00
|
|
|
|
|
|
|
The B<1> function uses a copy of the supplied structure pointer
|
|
|
|
(or in some cases increases its link count) in the parent and
|
2019-09-27 19:26:22 +08:00
|
|
|
so both (I<x> and I<obj> above) should be freed up.
|
2002-10-06 20:59:25 +08:00
|
|
|
|
2016-06-01 00:20:08 +08:00
|
|
|
=head1 RETURN VALUES
|
|
|
|
|
|
|
|
See the individual manual pages for details.
|
|
|
|
|
2000-01-12 06:35:21 +08:00
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2016-11-11 16:33:55 +08:00
|
|
|
L<openssl(1)>, L<ssl(7)>
|
2000-01-12 06:35:21 +08:00
|
|
|
|
2016-05-18 23:44:05 +08:00
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
|
|
Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
|
|
2018-12-06 21:05:22 +08:00
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 23:44:05 +08:00
|
|
|
this file except in compliance with the License. You can obtain a copy
|
|
|
|
in the file LICENSE in the source distribution or at
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|