|
SWILIB API (X75)
|
#include "base.h"#include "../builtin/openssl/rsa.h"#include "../builtin/openssl/md5.h"#include "../builtin/openssl/sha.h"#include "../builtin/openssl/ssl.h"#include "../builtin/openssl/bn.h"#include "../builtin/openssl/rand.h"#include "../builtin/openssl/evp.h"Go to the source code of this file.
Functions | |
Bignum | |
| BIGNUM * | BN_bin2bn (const unsigned char *s, int len, BIGNUM *ret) |
| Convert the positive integer in big-endian form into a BIGNUM. | |
MD5 hashing | |
| uint8_t * | MD5_Hash (const uint8_t *data, unsigned long len, uint8_t *hash) |
| Calculate MD5 hash by single function. | |
| void | MD5_Init (MD5_CTX *c) |
| Initialize a MD5_CTX structure. | |
| void | MD5_Update (MD5_CTX *c, const void *data, unsigned long len) |
| Hash chunk of the data. | |
| void | MD5_Final (uint8_t *hash, MD5_CTX *c) |
| Finalize the MD5 calculation and get hash. | |
SHA1 hashing | |
| void | SHA1_Init (SHA_CTX *c) |
| Initialize a SHA_CTX structure. | |
| void | SHA1_Update (SHA_CTX *c, const void *data, unsigned long len) |
| Hash chunk of the data. | |
| void | SHA1_Final (unsigned char *hash, SHA_CTX *c) |
| Finalize the SHA1 calculation and get hash. | |
RSA digest | |
| RSA * | RSA_new_method (RSA_METHOD *method) |
| Allocate and initialize an RSA structure so that method will be used for the RSA operations. | |
| int | RSA_sign (int type, unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa) |
| Sign message digest by the RSA. | |
| void | RSA_free (RSA *rsa) |
| Free RSA structure. | |
Random | |
| RAND_METHOD * | RAND_get_rand_method (void) |
| Get selected random method. | |
SSL | |
| SSL_METHOD * | TLSv1_client_method () |
| Get the TLSv1 client method. | |
| SSL_CTX * | SSL_CTX_new (SSL_METHOD *meth) |
| Allocate and initialize an SSL_CTX structure so that method will be used for the SSL operations. | |
| void | SSL_CTX_free (SSL_CTX *ctx) |
| Free SSL_CTX structure. | |
| long | SSL_CTX_ctrl (SSL_CTX *ctx, int cmd, long larg, void *parg) |
| Manipulate settings of the SSL_CTX object. | |
| SSL * | SSL_new (SSL_CTX *ctx) |
| Create an SSL structure for a connection. | |
| int | SSL_set_fd (SSL *s, int fd) |
| Connect the SSL object with a file descriptor. | |
| int | SSL_connect (SSL *ssl) |
| Initiate the TLS/SSL handshake with an TLS/SSL server. | |
| int | SSL_shutdown (SSL *ssl) |
| Shut down a SSL connection. | |
| int | SSL_read (SSL *ssl, void *buf, int num) |
| Read bytes from a SSL connection. | |
| int | SSL_peek (SSL *ssl, void *buf, int num) |
| Read bytes from a SSL connection. | |
| int | SSL_write (SSL *ssl, const void *buf, int num) |
| Write bytes to a SSL connection. | |
| void | SSL_free (SSL *ssl) |
| Free an allocated SSL structure. | |
| int | SSL_set_session (SSL *ssl, SSL_SESSION *session) |
| Set a SSL session to be used during SSL connect. | |
| void | SSL_SESSION_free (SSL_SESSION *sess) |
| Free an allocated SSL_SESSION structure. | |
EVP | |
| int | EVP_add_cipher (EVP_CIPHER *c) |
| Add new EVP cipher. | |