|
| SHARKSSL_API int | sharkssl_entropy (U32) |
| | Mix 32 application-supplied bits into the default RNG state. More...
|
| |
| SHARKSSL_API int | sharkssl_rng (U8 *, U16) |
| |
| SHARKSSL_API int | sharkssl_kmemcmp (const void *a, const void *b, U32 n) |
| |
| SHARKSSL_API void | SharkSslMd5Ctx_constructor (SharkSslMd5Ctx *ctx) |
| | Initialize. More...
|
| |
| SHARKSSL_API void | SharkSslMd5Ctx_append (SharkSslMd5Ctx *ctx, const U8 *data, U32 len) |
| | append More...
|
| |
| SHARKSSL_API void | SharkSslMd5Ctx_finish (SharkSslMd5Ctx *ctx, U8 digest[SHARKSSL_MD5_HASH_LEN]) |
| | finish More...
|
| |
| SHARKSSL_API int | sharkssl_md5 (const U8 *, U32, U8 *) |
| | md5 More...
|
| |
| SHARKSSL_API int | SharkSslSha1Ctx_constructor (SharkSslSha1Ctx *ctx) |
| | Initialize. More...
|
| |
| SHARKSSL_API int | SharkSslSha1Ctx_append (SharkSslSha1Ctx *ctx, const U8 *data, U32 len) |
| | append More...
|
| |
| SHARKSSL_API int | SharkSslSha1Ctx_finish (SharkSslSha1Ctx *ctx, U8 digest[SHARKSSL_SHA1_HASH_LEN]) |
| | finish More...
|
| |
| SHARKSSL_API int | SharkSslSha1Ctx_clone (const SharkSslSha1Ctx *source, SharkSslSha1Ctx *target) |
| |
| SHARKSSL_API int | SharkSslSha1Ctx_abort (SharkSslSha1Ctx *ctx) |
| |
| SHARKSSL_API int | sharkssl_sha1 (const U8 *, U32, U8 *) |
| | sha1 More...
|
| |
| SHARKSSL_API int | SharkSslSha224Ctx_constructor (SharkSslSha224Ctx *ctx) |
| |
| SHARKSSL_API int | SharkSslSha224Ctx_append (SharkSslSha224Ctx *ctx, const U8 *data, U32 len) |
| |
| SHARKSSL_API int | SharkSslSha224Ctx_finish (SharkSslSha224Ctx *ctx, U8 digest[SHARKSSL_SHA224_HASH_LEN]) |
| |
| SHARKSSL_API int | SharkSslSha224Ctx_clone (const SharkSslSha224Ctx *source, SharkSslSha224Ctx *target) |
| |
| SHARKSSL_API int | SharkSslSha224Ctx_abort (SharkSslSha224Ctx *ctx) |
| |
| SHARKSSL_API int | sharkssl_sha224 (const U8 *data, U32 len, U8 *digest) |
| |
| SHARKSSL_API int | SharkSslSha256Ctx_constructor (SharkSslSha256Ctx *ctx) |
| | Initialize. More...
|
| |
| SHARKSSL_API int | SharkSslSha256Ctx_append (SharkSslSha256Ctx *, const U8 *data, U32 len) |
| | append More...
|
| |
| SHARKSSL_API int | SharkSslSha256Ctx_finish (SharkSslSha256Ctx *, U8 digest[SHARKSSL_SHA256_HASH_LEN]) |
| | finish More...
|
| |
| SHARKSSL_API int | SharkSslSha256Ctx_clone (const SharkSslSha256Ctx *source, SharkSslSha256Ctx *target) |
| |
| SHARKSSL_API int | SharkSslSha256Ctx_abort (SharkSslSha256Ctx *ctx) |
| |
| SHARKSSL_API int | sharkssl_sha256 (const U8 *, U32, U8 *) |
| | sha256 More...
|
| |
| SHARKSSL_API int | SharkSslSha384Ctx_constructor (SharkSslSha384Ctx *ctx) |
| | Initialize. More...
|
| |
| SHARKSSL_API int | SharkSslSha384Ctx_append (SharkSslSha384Ctx *, const U8 *data, U32 len) |
| | append More...
|
| |
| SHARKSSL_API int | SharkSslSha384Ctx_finish (SharkSslSha384Ctx *, U8 digest[SHARKSSL_SHA384_HASH_LEN]) |
| | finish More...
|
| |
| SHARKSSL_API int | SharkSslSha384Ctx_clone (const SharkSslSha384Ctx *source, SharkSslSha384Ctx *target) |
| |
| SHARKSSL_API int | SharkSslSha384Ctx_abort (SharkSslSha384Ctx *ctx) |
| |
| SHARKSSL_API int | sharkssl_sha384 (const U8 *, U32, U8 *) |
| | sha384 More...
|
| |
| SHARKSSL_API int | SharkSslSha512Ctx_constructor (SharkSslSha512Ctx *ctx) |
| | Initialize. More...
|
| |
| SHARKSSL_API int | SharkSslSha512Ctx_append (SharkSslSha512Ctx *ctx, const U8 *data, U32 len) |
| | append More...
|
| |
| SHARKSSL_API int | SharkSslSha512Ctx_finish (SharkSslSha512Ctx *ctx, U8 digest[SHARKSSL_SHA512_HASH_LEN]) |
| | finish More...
|
| |
| SHARKSSL_API int | SharkSslSha512Ctx_clone (const SharkSslSha512Ctx *source, SharkSslSha512Ctx *target) |
| |
| SHARKSSL_API int | SharkSslSha512Ctx_abort (SharkSslSha512Ctx *ctx) |
| |
| SHARKSSL_API int | sharkssl_sha512 (const U8 *, U32, U8 *) |
| | sha512 More...
|
| |
| SHARKSSL_API int | SharkSslHMACCtx_constructor (SharkSslHMACCtx *ctx, U8 hashID, const U8 *key, U16 keyLen) |
| | Initialize. More...
|
| |
| SHARKSSL_API int | SharkSslHMACCtx_append (SharkSslHMACCtx *, const U8 *data, U32 len) |
| | append More...
|
| |
| SHARKSSL_API int | SharkSslHMACCtx_finish (SharkSslHMACCtx *, U8 *HMAC) |
| | finish More...
|
| |
| SHARKSSL_API int | SharkSslHMACCtx_destructor (SharkSslHMACCtx *ctx) |
| |
| SHARKSSL_API int | sharkssl_HMAC (const U8 hashID, const U8 *data, U32 len, const U8 *key, U16 keyLen, U8 *digest) |
| | HMAC. More...
|
| |
| void | sharkssl_clear (void *data, U32 len) |
| |
| U16 | sharkssl_getHashLen (U8 hashID) |
| |
| int | sharkssl_hash (U8 *digest, U8 *data, U32 len, U8 hashID) |
| |
| SHARKSSL_API void | SharkSslPoly1305Ctx_constructor (SharkSslPoly1305Ctx *ctx, const U8 key[32]) |
| | Initialize. More...
|
| |
| SHARKSSL_API void | SharkSslPoly1305Ctx_append (SharkSslPoly1305Ctx *ctx, const U8 *in, U32 len) |
| | append More...
|
| |
| SHARKSSL_API void | SharkSslPoly1305Ctx_finish (SharkSslPoly1305Ctx *ctx, U8 digest[SHARKSSL_POLY1305_HASH_LEN]) |
| | finish More...
|
| |
| SHARKSSL_API int | sharkssl_poly1305 (const U8 *data, U32 len, U8 *digest, const U8 key[32]) |
| | poly1305 More...
|
| |
| SHARKSSL_API SHARKSSL_CHACHA_API_STATUS | SharkSslChaChaCtx_constructor (SharkSslChaChaCtx *ctx, const U8 *key, U8 keyLen) |
| | Initialize. More...
|
| |
| SHARKSSL_API int | SharkSslChaChaCtx_destructor (SharkSslChaChaCtx *ctx) |
| |
| SHARKSSL_API SHARKSSL_CHACHA_API_STATUS | SharkSslChaChaCtx_setIV (SharkSslChaChaCtx *ctx, const U8 IV[12]) |
| | Initialize. More...
|
| |
| SHARKSSL_API SHARKSSL_CHACHA_API_STATUS | SharkSslChaChaCtx_crypt (SharkSslChaChaCtx *ctx, const U8 *input, U8 *output, U32 len) |
| | Encrypt or decrypt. More...
|
| |
| SHARKSSL_API int | sharkssl_chacha20poly1305_encrypt (const U8 key[32], const U8 nonce[12], const U8 *aad, const U8 *input, U8 *output, U8 tag[16], U32 len, U16 aadLen) |
| |
| SHARKSSL_API int | sharkssl_chacha20poly1305_decrypt (const U8 key[32], const U8 nonce[12], const U8 *aad, const U8 *input, const U8 tag[16], U8 *output, U32 len, U16 aadLen) |
| |
| SHARKSSL_API SHARKSSL_AES_API_STATUS | SharkSslAesCtx_constructor (SharkSslAesCtx *ctx, SharkSslAesCtx_Type type, const U8 *key, U8 keyLen) |
| | Initialize. More...
|
| |
| SHARKSSL_API SHARKSSL_AES_API_STATUS | SharkSslAesCtx_decrypt (SharkSslAesCtx *ctx, const U8 input[16], U8 output[16]) |
| | Decrypt. More...
|
| |
| SHARKSSL_API SHARKSSL_AES_API_STATUS | SharkSslAesCtx_encrypt (SharkSslAesCtx *ctx, U8 input[16], U8 output[16]) |
| | Encrypt. More...
|
| |
| SHARKSSL_API SHARKSSL_AES_API_STATUS | SharkSslAesCtx_cbc_encrypt (SharkSslAesCtx *ctx, U8 vect[16], const U8 *input, U8 *output, U32 len) |
| | Encrypt. More...
|
| |
| SHARKSSL_API SHARKSSL_AES_API_STATUS | SharkSslAesCtx_cbc_decrypt (SharkSslAesCtx *ctx, U8 vect[16], const U8 *input, U8 *output, U32 len) |
| | Decrypt. More...
|
| |
| SHARKSSL_API int | SharkSslAesCtx_cbc_pkcs7_encrypt (SharkSslAesCtx *ctx, const U8 iv[16], const U8 *input, U8 *output, U32 *outputLen, U32 len, U32 outputCapacity) |
| | CBC with PKCS#7 padding. More...
|
| |
| SHARKSSL_API int | SharkSslAesCtx_cbc_pkcs7_decrypt (SharkSslAesCtx *ctx, const U8 iv[16], const U8 *input, U8 *output, U32 *outputLen, U32 len, U32 outputCapacity) |
| |
| SHARKSSL_API SHARKSSL_AES_API_STATUS | SharkSslAesCtx_ctr_mode (SharkSslAesCtx *ctx, U8 ctr[16], const U8 *input, U8 *output, U32 len) |
| |
| SHARKSSL_API SHARKSSL_AES_API_STATUS | SharkSslAesGcmCtx_constructor (SharkSslAesGcmCtx *ctx, const U8 *key, U8 keyLen) |
| | Initialize. More...
|
| |
| SHARKSSL_API int | SharkSslAesGcmCtx_encrypt (SharkSslAesGcmCtx *ctx, const U8 vect[12], U8 tagout[16], const U8 *auth, U16 authlen, const U8 *input, U8 *output, U32 len) |
| | Encrypt and authenticate one complete message. More...
|
| |
| SHARKSSL_API int | SharkSslAesGcmCtx_decrypt (SharkSslAesGcmCtx *ctx, const U8 vect[12], U8 tagin[16], const U8 *auth, U16 authlen, U8 *input, U8 *output, U32 len) |
| | Decrypt and authenticate one complete message. More...
|
| |
| SHARKSSL_API SHARKSSL_AES_API_STATUS | SharkSslAesCcmCtx_constructor (SharkSslAesCcmCtx *ctx, const U8 *key, U8 keyLen, U8 tagLen) |
| | Initialize. More...
|
| |
| SHARKSSL_API int | SharkSslAesCcmCtx_encrypt (SharkSslAesCcmCtx *ctx, const U8 vect[12], U8 *tagout, const U8 *auth, U16 authlen, const U8 *input, U8 *output, U32 len) |
| | Encrypt. More...
|
| |
| SHARKSSL_API int | SharkSslAesCcmCtx_decrypt (SharkSslAesCcmCtx *ctx, const U8 vect[12], U8 *tagin, const U8 *auth, U16 authlen, const U8 *input, U8 *output, U32 len) |
| | Decrypt. More...
|
| |