2019-06-20 11:48:50 +01:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
ossl_prov_util_nid_to_name
|
|
|
|
- provider utility functions
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2019-10-04 15:25:59 +02:00
|
|
|
#include "prov/providercommon.h"
|
2019-06-20 11:48:50 +01:00
|
|
|
|
|
|
|
const char *ossl_prov_util_nid_to_name(int nid);
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
The ossl_prov_util_nid_to_name() returns the name of an algorithm given a NID
|
2019-09-27 13:26:22 +02:00
|
|
|
in the I<nid> parameter. For the default and legacy providers it is equivalent
|
2019-06-20 11:48:50 +01:00
|
|
|
to calling OBJ_nid2sn(). The FIPS provider does not have the object database
|
|
|
|
code available to it (because that code relies on the ASN.1 code), so this
|
|
|
|
function is a static lookup of all known FIPS algorithm NIDs.
|
|
|
|
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
|
|
|
|
Returns a pointer to the algorithm name, or NULL on error.
|
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
|
|
Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
|
|
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
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
|