| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@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}) |
| 6 |
@var{algorithm}: is the gnutls digest identifier |
| 7 |
|
| 8 |
@var{priority}: is the priority of the algorithm |
| 9 |
|
| 10 |
@var{init}: A function which initializes the digest |
| 11 |
|
| 12 |
@var{hash}: Perform the hash operation |
| 13 |
|
| 14 |
@var{output}: Provide the output of the digest |
| 15 |
|
| 16 |
@var{deinit}: A function which deinitializes the digest |
| 17 |
|
| 18 |
@var{hash_fast}: Perform the digest operation in one go |
| 19 |
|
| 20 |
This function will register a digest algorithm to be used by gnutls. |
| 21 |
Any algorithm registered will override the included algorithms and |
| 22 |
by convention kernel implemented algorithms have priority of 90 |
| 23 |
and CPU-assisted of 80. |
| 24 |
The algorithm with the lowest priority will be used by gnutls. |
| 25 |
|
| 26 |
@strong{Deprecated:} since 3.7.0 it is no longer possible to override cipher implementation |
| 27 |
|
| 28 |
@strong{Returns:} @code{GNUTLS_E_SUCCESS} on success, otherwise a negative error code. |
| 29 |
|
| 30 |
@strong{Since:} 3.4.0 |
| 31 |
@end deftypefun |