1gnutls_crypto_register_digest(3)    gnutls    gnutls_crypto_register_digest(3)
2
3
4

NAME

6       gnutls_crypto_register_digest - API function
7

SYNOPSIS

9       #include <gnutls/crypto.h>
10
11       int  gnutls_crypto_register_digest(gnutls_digest_algorithm_t algorithm,
12       int  priority,  gnutls_digest_init_func  init,  gnutls_digest_hash_func
13       hash,   gnutls_digest_output_func   output,   gnutls_digest_deinit_func
14       deinit, gnutls_digest_fast_func hash_fast);
15

ARGUMENTS

17       gnutls_digest_algorithm_t algorithm
18                   is the gnutls digest identifier
19
20       int priority
21                   is the priority of the algorithm
22
23       gnutls_digest_init_func init
24                   A function which initializes the digest
25
26       gnutls_digest_hash_func hash
27                   Perform the hash operation
28
29       gnutls_digest_output_func output
30                   Provide the output of the digest
31
32       gnutls_digest_deinit_func deinit
33                   A function which deinitializes the digest
34
35       gnutls_digest_fast_func hash_fast
36                   Perform the digest operation in one go
37

DESCRIPTION

39       This function will register a digest algorithm to be  used  by  gnutls.
40       Any  algorithm  registered will override the included algorithms and by
41       convention kernel  implemented  algorithms  have  priority  of  90  and
42       CPU-assisted  of  80.   The  algorithm with the lowest priority will be
43       used by gnutls.
44

DEPRECATED

46       since 3.7.0 it is no longer possible to override cipher implementation
47

RETURNS

49       GNUTLS_E_SUCCESS on success, otherwise a negative error code.
50

SINCE

52       3.4.0
53

REPORTING BUGS

55       Report bugs to <bugs@gnutls.org>.
56       Home page: https://www.gnutls.org
57
58
60       Copyright © 2001- Free Software Foundation, Inc., and others.
61       Copying and distribution of this file, with  or  without  modification,
62       are  permitted in any medium without royalty provided the copyright no‐
63       tice and this notice are preserved.
64

SEE ALSO

66       The full documentation for gnutls is maintained as  a  Texinfo  manual.
67       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
68       visit
69
70       https://www.gnutls.org/manual/
71
72gnutls                               3.7.6    gnutls_crypto_register_digest(3)
Impressum