diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 07:33:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 07:33:12 +0000 |
commit | 36082a2fe36ecd800d784ae44c14f1f18c66a7e9 (patch) | |
tree | 6c68e0c0097987aff85a01dabddd34b862309a7c /doc/functions/gnutls_crypto_register_digest | |
parent | Initial commit. (diff) | |
download | gnutls28-upstream.tar.xz gnutls28-upstream.zip |
Adding upstream version 3.7.9.upstream/3.7.9upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/functions/gnutls_crypto_register_digest')
-rw-r--r-- | doc/functions/gnutls_crypto_register_digest | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/functions/gnutls_crypto_register_digest b/doc/functions/gnutls_crypto_register_digest new file mode 100644 index 0000000..3a76a2e --- /dev/null +++ b/doc/functions/gnutls_crypto_register_digest @@ -0,0 +1,31 @@ + + + + +@deftypefun {int} {gnutls_crypto_register_digest} (gnutls_digest_algorithm_t @var{algorithm}, int @var{priority}, gnutls_digest_init_func @var{init}, gnutls_digest_hash_func @var{hash}, gnutls_digest_output_func @var{output}, gnutls_digest_deinit_func @var{deinit}, gnutls_digest_fast_func @var{hash_fast}) +@var{algorithm}: is the gnutls digest identifier + +@var{priority}: is the priority of the algorithm + +@var{init}: A function which initializes the digest + +@var{hash}: Perform the hash operation + +@var{output}: Provide the output of the digest + +@var{deinit}: A function which deinitializes the digest + +@var{hash_fast}: Perform the digest operation in one go + +This function will register a digest algorithm to be used by gnutls. +Any algorithm registered will override the included algorithms and +by convention kernel implemented algorithms have priority of 90 +and CPU-assisted of 80. +The algorithm with the lowest priority will be used by gnutls. + +@strong{Deprecated:} since 3.7.0 it is no longer possible to override cipher implementation + +@strong{Returns:} @code{GNUTLS_E_SUCCESS} on success, otherwise a negative error code. + +@strong{Since:} 3.4.0 +@end deftypefun |