gnutls_crypto_register_cipher - Online Linux Manual Page

Section : 3
Updated : 3.7.3
Source : gnutls
Note : gnutls

NAMEgnutls_crypto_register_cipher − API function

SYNOPSIS#include <gnutls/crypto.h> int gnutls_crypto_register_cipher(gnutls_cipher_algorithm_t algorithm, int priority, gnutls_cipher_init_func init, gnutls_cipher_setkey_func setkey, gnutls_cipher_setiv_func setiv, gnutls_cipher_encrypt_func encrypt, gnutls_cipher_decrypt_func decrypt, gnutls_cipher_deinit_func deinit);

ARGUMENTSgnutls_cipher_algorithm_t algorithm is the gnutls algorithm identifier int priority is the priority of the algorithm gnutls_cipher_init_func init A function which initializes the cipher gnutls_cipher_setkey_func setkey A function which sets the key of the cipher gnutls_cipher_setiv_func setiv A function which sets the nonce/IV of the cipher (non−AEAD) gnutls_cipher_encrypt_func encrypt A function which performs encryption (non−AEAD) gnutls_cipher_decrypt_func decrypt A function which performs decryption (non−AEAD) gnutls_cipher_deinit_func deinit A function which deinitializes the cipher

DESCRIPTIONThis function will register a cipher algorithm to be used by gnutls. Any algorithm registered will override the included algorithms and by convention kernel implemented algorithms have priority of 90 and CPU−assisted of 80. The algorithm with the lowest priority will be used by gnutls. In the case the registered init or setkey functions return GNUTLS_E_NEED_FALLBACK, GnuTLS will attempt to use the next in priority registered cipher. The functions which are marked as non−AEAD they are not required when registering a cipher to be used with the new AEAD API introduced in GnuTLS 3.4.0. Internally GnuTLS uses the new AEAD API.

DEPRECATEDsince 3.7.0 it is no longer possible to override cipher implementation

RETURNSGNUTLS_E_SUCCESS on success, otherwise a negative error code.

SINCE3.4.0

REPORTING BUGSReport bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org

COPYRIGHTCopyright © 2001- Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

SEE ALSOThe full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit https://www.gnutls.org/manual/ 
0
Johanes Gumabo
Data Size   :   7,814 byte
man-gnutls_crypto_register_cipher.3Build   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   65 / 4,755,718
Visitor ID   :     :  
Visitor IP   :   216.73.216.132   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   20   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.