1gnutls_crypto_register_digest(3) gnutls gnutls_crypto_register_digest(3)
2
3
4
6 gnutls_crypto_register_digest - API function
7
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
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
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
46 GNUTLS_E_SUCCESS on success, otherwise a negative error code.
47
49 3.4.0
50
52 Report bugs to <bugs@gnutls.org>.
53 Home page: https://www.gnutls.org
54
55
57 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
58 Copying and distribution of this file, with or without modification,
59 are permitted in any medium without royalty provided the copyright
60 notice and this notice are preserved.
61
63 The full documentation for gnutls is maintained as a Texinfo manual.
64 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
65 visit
66
67 https://www.gnutls.org/manual/
68
69gnutls 3.6.8 gnutls_crypto_register_digest(3)