7700
7692
For GNUTLS_CRD_CERTIFICATE cred should be
7701
7693
gnutls_certificate_credentials_t.
7703
gnutls_crypto_cipher_register
7704
-----------------------------
7706
-- Function: int gnutls_crypto_cipher_register
7707
(gnutls_cipher_algorithm_t ALGORITHM, int PRIORITY,
7708
gnutls_crypto_cipher_st* S)
7695
gnutls_crypto_bigint_register2
7696
------------------------------
7698
-- Function: int gnutls_crypto_bigint_register2 (int PRIORITY, int
7699
VERSION, gnutls_crypto_bigint_st * S)
7700
PRIORITY: is the priority of the interface
7702
VERSION: should be set to `GNUTLS_CRYPTO_API_VERSION'
7704
S: is a structure holding new interface's data
7706
This function will register an interface for gnutls to operate on
7707
big integers. Any interface registered will override the included
7708
interface. The interface with the lowest priority will be used by
7711
Note that the bigint interface must interoperate with the public
7712
key interface. Thus if this interface is updated the
7713
`gnutls_crypto_pk_register()' should also be used.
7715
This function should be called before `gnutls_global_init()'.
7717
For simplicity you can use the convenience
7718
`gnutls_crypto_bigint_register()' macro.
7720
*Returns:* `GNUTLS_E_SUCCESS' on success, otherwise an error.
7724
gnutls_crypto_cipher_register2
7725
------------------------------
7727
-- Function: int gnutls_crypto_cipher_register2 (int PRIORITY, int
7728
VERSION, gnutls_crypto_cipher_st * S)
7729
PRIORITY: is the priority of the cipher interface
7731
VERSION: should be set to `GNUTLS_CRYPTO_API_VERSION'
7733
S: is a structure holding new interface's data
7735
This function will register a cipher interface to be used by
7736
gnutls. Any interface registered will override the included engine
7737
and by convention kernel implemented interfaces should have
7738
priority of 90. The interface with the lowest priority will be used
7741
This function should be called before `gnutls_global_init()'.
7743
For simplicity you can use the convenience
7744
`gnutls_crypto_cipher_register()' macro.
7746
*Returns:* `GNUTLS_E_SUCCESS' on success, otherwise an error.
7750
gnutls_crypto_digest_register2
7751
------------------------------
7753
-- Function: int gnutls_crypto_digest_register2 (int PRIORITY, int
7754
VERSION, gnutls_crypto_digest_st * S)
7755
PRIORITY: is the priority of the digest interface
7757
VERSION: should be set to `GNUTLS_CRYPTO_API_VERSION'
7759
S: is a structure holding new interface's data
7761
This function will register a digest interface to be used by
7762
gnutls. Any interface registered will override the included engine
7763
and by convention kernel implemented interfaces should have
7764
priority of 90. The interface with the lowest priority will be used
7767
This function should be called before `gnutls_global_init()'.
7769
For simplicity you can use the convenience
7770
`gnutls_crypto_digest_register()' macro.
7772
*Returns:* `GNUTLS_E_SUCCESS' on success, otherwise an error.
7776
gnutls_crypto_mac_register2
7777
---------------------------
7779
-- Function: int gnutls_crypto_mac_register2 (int PRIORITY, int
7780
VERSION, gnutls_crypto_mac_st * S)
7781
PRIORITY: is the priority of the mac interface
7783
VERSION: should be set to `GNUTLS_CRYPTO_API_VERSION'
7785
S: is a structure holding new interface's data
7787
This function will register a mac interface to be used by gnutls.
7788
Any interface registered will override the included engine and by
7789
convention kernel implemented interfaces should have priority of
7790
90. The interface with the lowest priority will be used by gnutls.
7792
This function should be called before `gnutls_global_init()'.
7794
For simplicity you can use the convenience
7795
`gnutls_crypto_mac_register()' macro.
7797
*Returns:* `GNUTLS_E_SUCCESS' on success, otherwise an error.
7801
gnutls_crypto_pk_register2
7802
--------------------------
7804
-- Function: int gnutls_crypto_pk_register2 (int PRIORITY, int
7805
VERSION, gnutls_crypto_pk_st * S)
7806
PRIORITY: is the priority of the interface
7808
VERSION: should be set to `GNUTLS_CRYPTO_API_VERSION'
7810
S: is a structure holding new interface's data
7812
This function will register an interface for gnutls to operate on
7813
public key operations. Any interface registered will override the
7814
included interface. The interface with the lowest priority will be
7817
Note that the bigint interface must interoperate with the bigint
7818
interface. Thus if this interface is updated the
7819
`gnutls_crypto_bigint_register()' should also be used.
7821
This function should be called before `gnutls_global_init()'.
7823
For simplicity you can use the convenience
7824
`gnutls_crypto_pk_register()' macro.
7826
*Returns:* `GNUTLS_E_SUCCESS' on success, otherwise an error.
7830
gnutls_crypto_rnd_register2
7831
---------------------------
7833
-- Function: int gnutls_crypto_rnd_register2 (int PRIORITY, int
7834
VERSION, gnutls_crypto_rnd_st * S)
7835
PRIORITY: is the priority of the generator
7837
VERSION: should be set to `GNUTLS_CRYPTO_API_VERSION'
7839
S: is a structure holding new generator's data
7841
This function will register a random generator to be used by
7842
gnutls. Any generator registered will override the included
7843
generator and by convention kernel implemented generators have
7844
priority of 90. The generator with the lowest priority will be
7847
This function should be called before `gnutls_global_init()'.
7849
For simplicity you can use the convenience
7850
`gnutls_crypto_rnd_register()' macro.
7852
*Returns:* `GNUTLS_E_SUCCESS' on success, otherwise an error.
7856
gnutls_crypto_single_cipher_register2
7857
-------------------------------------
7859
-- Function: int gnutls_crypto_single_cipher_register2
7860
(gnutls_cipher_algorithm_t ALGORITHM, int PRIORITY, int
7861
VERSION, gnutls_crypto_single_cipher_st * S)
7709
7862
ALGORITHM: is the gnutls algorithm identifier
7711
7864
PRIORITY: is the priority of the algorithm
7866
VERSION: should be set to `GNUTLS_CRYPTO_API_VERSION'
7713
7868
S: is a structure holding new cipher's data
7715
7870
This function will register a cipher algorithm to be used by
7716
gnutls. Any algorithm registered will override the included
7871
gnutls. Any algorithm registered will override the included
7717
7872
algorithms and by convention kernel implemented algorithms have
7718
priority of 90. The algorithm with the lowest priority will be
7873
priority of 90. The algorithm with the lowest priority will be
7719
7874
used by gnutls.
7721
7876
This function should be called before `gnutls_global_init()'.
7878
For simplicity you can use the convenience
7879
`gnutls_crypto_single_cipher_register()' macro.
7723
7881
*Returns:* `GNUTLS_E_SUCCESS' on success, otherwise an error.
7725
gnutls_crypto_digest_register
7726
-----------------------------
7728
-- Function: int gnutls_crypto_digest_register
7729
(gnutls_digest_algorithm_t ALGORITHM, int PRIORITY,
7730
gnutls_crypto_digest_st* S)
7885
gnutls_crypto_single_digest_register2
7886
-------------------------------------
7888
-- Function: int gnutls_crypto_single_digest_register2
7889
(gnutls_digest_algorithm_t ALGORITHM, int PRIORITY, int
7890
VERSION, gnutls_crypto_single_digest_st * S)
7731
7891
ALGORITHM: is the gnutls algorithm identifier
7733
7893
PRIORITY: is the priority of the algorithm
7895
VERSION: should be set to `GNUTLS_CRYPTO_API_VERSION'
7735
7897
S: is a structure holding new algorithms's data
7737
This function will register a digest (hash) algorithm to be used
7738
by gnutls. Any algorithm registered will override the included
7899
This function will register a digest (hash) algorithm to be used by
7900
gnutls. Any algorithm registered will override the included
7739
7901
algorithms and by convention kernel implemented algorithms have
7740
priority of 90. The algorithm with the lowest priority will be
7902
priority of 90. The algorithm with the lowest priority will be
7741
7903
used by gnutls.
7743
7905
This function should be called before `gnutls_global_init()'.
7907
For simplicity you can use the convenience
7908
`gnutls_crypto_single_digest_register()' macro.
7745
7910
*Returns:* `GNUTLS_E_SUCCESS' on success, otherwise an error.
7747
gnutls_crypto_mac_register
7748
--------------------------
7750
-- Function: int gnutls_crypto_mac_register (gnutls_mac_algorithm_t
7751
ALGORITHM, int PRIORITY, gnutls_crypto_mac_st* S)
7914
gnutls_crypto_single_mac_register2
7915
----------------------------------
7917
-- Function: int gnutls_crypto_single_mac_register2
7918
(gnutls_mac_algorithm_t ALGORITHM, int PRIORITY, int VERSION,
7919
gnutls_crypto_single_mac_st * S)
7752
7920
ALGORITHM: is the gnutls algorithm identifier
7754
7922
PRIORITY: is the priority of the algorithm
7924
VERSION: should be set to `GNUTLS_CRYPTO_API_VERSION'
7756
7926
S: is a structure holding new algorithms's data