|
| MODULE ("turnstone.lib.crypto") |
|
int32_t | gcm_initialize (void) |
|
static void | gcm_mult (gcm_context_t *ctx, const uint8_t x[16], uint8_t output[16]) |
|
int32_t | gcm_setkey (gcm_context_t *ctx, const uint8_t *key, const uint32_t keysize) |
|
int32_t | gcm_start (gcm_context_t *ctx, int32_t mode, const uint8_t *iv, size_t iv_len, const uint8_t *add, size_t add_len) |
|
int32_t | gcm_update (gcm_context_t *ctx, size_t length, const uint8_t *input, uint8_t *output) |
|
int32_t | gcm_finish (gcm_context_t *ctx, uint8_t *tag, size_t tag_len) |
|
int32_t | gcm_crypt_and_tag (gcm_context_t *ctx, int32_t mode, const uint8_t *iv, size_t iv_len, const uint8_t *add, size_t add_len, const uint8_t *input, uint8_t *output, size_t length, uint8_t *tag, size_t tag_len) |
|
int32_t | gcm_auth_decrypt (gcm_context_t *ctx, const uint8_t *iv, size_t iv_len, const uint8_t *add, size_t add_len, const uint8_t *input, uint8_t *output, size_t length, const uint8_t *tag, size_t tag_len) |
|
void | gcm_zero_ctx (gcm_context_t *ctx) |
|
Galois/Counter Mode (GCM) implementation.
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.