| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_privkey_sign_data2} (gnutls_privkey_t @var{signer}, gnutls_sign_algorithm_t @var{algo}, unsigned int @var{flags}, const gnutls_datum_t * @var{data}, gnutls_datum_t * @var{signature}) |
| 6 |
@var{signer}: Holds the key |
| 7 |
|
| 8 |
@var{algo}: The signature algorithm used |
| 9 |
|
| 10 |
@var{flags}: Zero or one of @code{gnutls_privkey_flags_t} |
| 11 |
|
| 12 |
@var{data}: holds the data to be signed |
| 13 |
|
| 14 |
@var{signature}: will contain the signature allocated with @code{gnutls_malloc()} |
| 15 |
|
| 16 |
This function will sign the given data using the specified signature |
| 17 |
algorithm. This function is an enhancement of @code{gnutls_privkey_sign_data()} , |
| 18 |
as it allows utilizing a alternative signature algorithm where possible |
| 19 |
(e.g, use an RSA key with RSA-PSS). |
| 20 |
|
| 21 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 22 |
negative error value. |
| 23 |
|
| 24 |
@strong{Since:} 3.6.0 |
| 25 |
@end deftypefun |