gnutls_cipher_deinit - Linux


Overview

gnutls_cipher_deinit deallocates and destroys a cryptographic cipher context. This operation must be called when the context is no longer needed.

Syntax

int gnutls_cipher_deinit(gnutls_cipher_context_t *ctx);

Options/Flags

Parameter | Description
—|—|
ctx | The cipher context to be deallocated

Examples

Deallocate a cipher context:

gnutls_cipher_context_t ctx = gnutls_cipher_init(CIPHER_ALGO);
gnutls_cipher_deinit(ctx);

Common Issues

None.

Integration

None.

Related Commands

  • gnutls_cipher_init
  • gnutls_cipher
  • gnutls_cipher_info