Blame doc/functions/gnutls_cipher_decrypt2
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_cipher_decrypt2} (gnutls_cipher_hd_t @var{handle}, const void * @var{ctext}, size_t @var{ctext_len}, void * @var{ptext}, size_t @var{ptext_len})
|
|
Packit Service |
4684c1 |
@var{handle}: is a @code{gnutls_cipher_hd_t} type
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{ctext}: the data to decrypt
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{ctext_len}: the length of data to decrypt
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{ptext}: the decrypted data
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{ptext_len}: the available length for decrypted data
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will decrypt the given data using the algorithm
|
|
Packit Service |
4684c1 |
specified by the context. For block ciphers the @code{ctext_len} must be
|
|
Packit Service |
4684c1 |
a multiple of the block size. For the supported ciphers the plaintext
|
|
Packit Service |
4684c1 |
data length will equal the ciphertext size.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Note that in AEAD ciphers, this will not check the tag. You will
|
|
Packit Service |
4684c1 |
need to compare the tag sent with the value returned from @code{gnutls_cipher_tag()} .
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} Zero or a negative error code on error.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Since:} 2.12.0
|
|
Packit Service |
4684c1 |
@end deftypefun
|