Home
last modified time | relevance | path

Searched refs:mbedtls_gcm_context (Results 1 – 5 of 5) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dgcm.h58 typedef struct mbedtls_gcm_context { struct
75 mbedtls_gcm_context; typedef
92 void mbedtls_gcm_init(mbedtls_gcm_context *ctx);
110 int mbedtls_gcm_setkey(mbedtls_gcm_context *ctx,
165 int mbedtls_gcm_crypt_and_tag(mbedtls_gcm_context *ctx,
212 int mbedtls_gcm_auth_decrypt(mbedtls_gcm_context *ctx,
236 int mbedtls_gcm_starts(mbedtls_gcm_context *ctx,
261 int mbedtls_gcm_update_ad(mbedtls_gcm_context *ctx,
318 int mbedtls_gcm_update(mbedtls_gcm_context *ctx,
356 int mbedtls_gcm_finish(mbedtls_gcm_context *ctx,
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dgcm.c53 void mbedtls_gcm_init(mbedtls_gcm_context *ctx) in mbedtls_gcm_init()
55 memset(ctx, 0, sizeof(mbedtls_gcm_context)); in mbedtls_gcm_init()
58 static inline void gcm_set_acceleration(mbedtls_gcm_context *ctx) in gcm_set_acceleration()
99 static int gcm_gen_table(mbedtls_gcm_context *ctx) in gcm_gen_table()
162 int mbedtls_gcm_setkey(mbedtls_gcm_context *ctx, in mbedtls_gcm_setkey()
347 static void gcm_mult(mbedtls_gcm_context *ctx, const unsigned char x[16], in gcm_mult()
377 int mbedtls_gcm_starts(mbedtls_gcm_context *ctx, in mbedtls_gcm_starts()
467 int mbedtls_gcm_update_ad(mbedtls_gcm_context *ctx, in mbedtls_gcm_update_ad()
534 static int gcm_mask(mbedtls_gcm_context *ctx, in gcm_mask()
564 int mbedtls_gcm_update(mbedtls_gcm_context *ctx, in mbedtls_gcm_update()
[all …]
H A Dcipher_wrap.c125 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_gcm_context)); in gcm_ctx_alloc()
128 mbedtls_gcm_init((mbedtls_gcm_context *) ctx); in gcm_ctx_alloc()
136 memcpy(dst, src, sizeof(mbedtls_gcm_context)); in gcm_ctx_clone()
591 return mbedtls_gcm_setkey((mbedtls_gcm_context *) ctx, MBEDTLS_CIPHER_ID_AES, in gcm_aes_setkey_wrap()
1045 return mbedtls_gcm_setkey((mbedtls_gcm_context *) ctx, MBEDTLS_CIPHER_ID_CAMELLIA, in gcm_camellia_setkey_wrap()
1465 return mbedtls_gcm_setkey((mbedtls_gcm_context *) ctx, MBEDTLS_CIPHER_ID_ARIA, in gcm_aria_setkey_wrap()
H A Dcipher.c511 return mbedtls_gcm_starts((mbedtls_gcm_context *) ctx->cipher_ctx, in mbedtls_cipher_set_iv()
589 return mbedtls_gcm_update_ad((mbedtls_gcm_context *) ctx->cipher_ctx, in mbedtls_cipher_update_ad()
662 return mbedtls_gcm_update((mbedtls_gcm_context *) ctx->cipher_ctx, in mbedtls_cipher_update()
1252 return mbedtls_gcm_finish((mbedtls_gcm_context *) ctx->cipher_ctx, in mbedtls_cipher_write_tag()
1310 (mbedtls_gcm_context *) ctx->cipher_ctx, in mbedtls_cipher_check_tag()
/optee_os/lib/libmbedtls/mbedtls/include/psa/
H A Dcrypto_builtin_composites.h93 mbedtls_gcm_context MBEDTLS_PRIVATE(gcm);