Searched refs:mbedtls_chachapoly_context (Results 1 – 5 of 5) sorted by relevance
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | chachapoly.h | 48 typedef struct mbedtls_chachapoly_context { struct 56 mbedtls_chachapoly_context; typedef 104 void mbedtls_chachapoly_init(mbedtls_chachapoly_context *ctx); 113 void mbedtls_chachapoly_free(mbedtls_chachapoly_context *ctx); 126 int mbedtls_chachapoly_setkey(mbedtls_chachapoly_context *ctx, 154 int mbedtls_chachapoly_starts(mbedtls_chachapoly_context *ctx, 197 int mbedtls_chachapoly_update_aad(mbedtls_chachapoly_context *ctx, 232 int mbedtls_chachapoly_update(mbedtls_chachapoly_context *ctx, 253 int mbedtls_chachapoly_finish(mbedtls_chachapoly_context *ctx, 285 int mbedtls_chachapoly_encrypt_and_tag(mbedtls_chachapoly_context *ctx, [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | chachapoly.c | 34 static int chachapoly_pad_aad(mbedtls_chachapoly_context *ctx) in chachapoly_pad_aad() 55 static int chachapoly_pad_ciphertext(mbedtls_chachapoly_context *ctx) in chachapoly_pad_ciphertext() 70 void mbedtls_chachapoly_init(mbedtls_chachapoly_context *ctx) in mbedtls_chachapoly_init() 80 void mbedtls_chachapoly_free(mbedtls_chachapoly_context *ctx) in mbedtls_chachapoly_free() 94 int mbedtls_chachapoly_setkey(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_setkey() 104 int mbedtls_chachapoly_starts(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_starts() 143 int mbedtls_chachapoly_update_aad(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_update_aad() 156 int mbedtls_chachapoly_update(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_update() 204 int mbedtls_chachapoly_finish(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_finish() 244 static int chachapoly_crypt_and_tag(mbedtls_chachapoly_context *ctx, in chachapoly_crypt_and_tag() [all …]
|
| H A D | cipher.c | 603 result = mbedtls_chachapoly_starts((mbedtls_chachapoly_context *) ctx->cipher_ctx, in mbedtls_cipher_update_ad() 610 return mbedtls_chachapoly_update_aad((mbedtls_chachapoly_context *) ctx->cipher_ctx, in mbedtls_cipher_update_ad() 679 return mbedtls_chachapoly_update((mbedtls_chachapoly_context *) ctx->cipher_ctx, in mbedtls_cipher_update() 1266 (mbedtls_chachapoly_context *) ctx->cipher_ctx, tag); in mbedtls_cipher_write_tag() 1332 (mbedtls_chachapoly_context *) ctx->cipher_ctx, check_tag); in mbedtls_cipher_check_tag()
|
| H A D | cipher_wrap.c | 2031 if (0 != mbedtls_chachapoly_setkey((mbedtls_chachapoly_context *) ctx, key)) { in chachapoly_setkey_wrap() 2040 mbedtls_chachapoly_context *ctx; in chachapoly_ctx_alloc() 2041 ctx = mbedtls_calloc(1, sizeof(mbedtls_chachapoly_context)); in chachapoly_ctx_alloc() 2054 memcpy(dst, src, sizeof(mbedtls_chachapoly_context)); in chachapoly_ctx_clone() 2059 mbedtls_chachapoly_free((mbedtls_chachapoly_context *) ctx); in chachapoly_ctx_free()
|
| /optee_os/lib/libmbedtls/mbedtls/include/psa/ |
| H A D | crypto_builtin_composites.h | 96 mbedtls_chachapoly_context MBEDTLS_PRIVATE(chachapoly);
|