| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {gnutls_hmac_hd_t} {gnutls_hmac_copy} (gnutls_hmac_hd_t @var{handle}) |
| 6 |
@var{handle}: is a @code{gnutls_hmac_hd_t} type |
| 7 |
|
| 8 |
This function will create a copy of MAC context, containing all its current |
| 9 |
state. Copying contexts for MACs registered using |
| 10 |
@code{gnutls_crypto_register_mac()} is not supported and will always result in an |
| 11 |
error. In addition to that, some of the MAC implementations do not support |
| 12 |
this operation. Applications should check the return value and provide a |
| 13 |
proper fallback. |
| 14 |
|
| 15 |
@strong{Returns:} new MAC context or NULL in case of an error. |
| 16 |
|
| 17 |
@strong{Since:} 3.6.9 |
| 18 |
@end deftypefun |