1OpenSSL_add_all_algorithms(3)       OpenSSL      OpenSSL_add_all_algorithms(3)
2
3
4

NAME

6       OpenSSL_add_all_algorithms, OpenSSL_add_all_ciphers,
7       OpenSSL_add_all_digests - add algorithms to internal table
8

SYNOPSIS

10        #include <openssl/evp.h>
11
12        void OpenSSL_add_all_algorithms(void);
13        void OpenSSL_add_all_ciphers(void);
14        void OpenSSL_add_all_digests(void);
15
16        void EVP_cleanup(void);
17

DESCRIPTION

19       OpenSSL keeps an internal table of digest algorithms and ciphers. It
20       uses this table to lookup ciphers via functions such as
21       EVP_get_cipher_byname().
22
23       OpenSSL_add_all_digests() adds all digest algorithms to the table.
24
25       OpenSSL_add_all_algorithms() adds all algorithms to the table (digests
26       and ciphers).
27
28       OpenSSL_add_all_ciphers() adds all encryption algorithms to the table
29       including password based encryption algorithms.
30
31       EVP_cleanup() removes all ciphers and digests from the table.
32

RETURN VALUES

34       None of the functions return a value.
35

NOTES

37       A typical application will call OpenSSL_add_all_algorithms() initially
38       and EVP_cleanup() before exiting.
39
40       An application does not need to add algorithms to use them explicitly,
41       for example by EVP_sha1(). It just needs to add them if it (or any of
42       the functions it calls) needs to lookup algorithms.
43
44       The cipher and digest lookup functions are used in many parts of the
45       library. If the table is not initialized several functions will misbeā€
46       have and complain they cannot find algorithms. This includes the PEM,
47       PKCS#12, SSL and S/MIME libraries.  This is a common query in the
48       OpenSSL mailing lists.
49
50       Calling OpenSSL_add_all_algorithms() links in all algorithms: as a
51       result a statically linked executable can be quite large. If this is
52       important it is possible to just add the required ciphers and digests.
53

BUGS

55       Although the functions do not return error codes it is possible for
56       them to fail.  This will only happen as a result of a memory allocation
57       failure so this is not too much of a problem in practice.
58

SEE ALSO

60       evp(3), EVP_DigestInit(3), EVP_EncryptInit(3)
61
62
63
640.9.8b                            2003-12-27     OpenSSL_add_all_algorithms(3)
Impressum