Home
last modified time | relevance | path

Searched refs:ossl_gcm_context (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/crypto/openssl/
H A Dossl_aes_gcm.h32 struct ossl_gcm_context;
35 void (*init)(struct ossl_gcm_context *ctx, const void *key,
37 void (*setiv)(struct ossl_gcm_context *ctx, const unsigned char *iv,
39 int (*aad)(struct ossl_gcm_context *ctx, const unsigned char *aad,
41 int (*encrypt)(struct ossl_gcm_context *ctx, const unsigned char *in,
43 int (*decrypt)(struct ossl_gcm_context *ctx, const unsigned char *in,
45 int (*finish)(struct ossl_gcm_context *ctx, const unsigned char *tag,
47 void (*tag)(struct ossl_gcm_context *ctx, unsigned char *tag,
55 struct ossl_gcm_context { struct
H A Dossl_aes.c176 struct ossl_gcm_context ctx; in ossl_aes_gcm()
199 memcpy(&ctx, &s->enc_ctx, sizeof(struct ossl_gcm_context)); in ossl_aes_gcm()
201 memcpy(&ctx, &s->dec_ctx, sizeof(struct ossl_gcm_context)); in ossl_aes_gcm()
/freebsd/sys/crypto/openssl/amd64/
H A Dossl_aes_gcm.c29 sizeof(struct ossl_gcm_context) <= sizeof(struct ossl_cipher_context),
35 gcm_init(struct ossl_gcm_context *ctx, const void *key, size_t keylen) in gcm_init()
47 gcm_tag(struct ossl_gcm_context *ctx, unsigned char *tag, size_t len) in gcm_tag()
68 gcm_init_avx512(struct ossl_gcm_context *ctx, const void *key, size_t keylen) in gcm_init_avx512()
74 gcm_setiv_avx512(struct ossl_gcm_context *ctx, const unsigned char *iv, in gcm_setiv_avx512()
93 gcm_aad_avx512(struct ossl_gcm_context *ctx, const unsigned char *aad, in gcm_aad_avx512()
152 _gcm_encrypt_avx512(struct ossl_gcm_context *ctx, const unsigned char *in, in _gcm_encrypt_avx512()
181 gcm_encrypt_avx512(struct ossl_gcm_context *ctx, const unsigned char *in, in gcm_encrypt_avx512()
188 gcm_decrypt_avx512(struct ossl_gcm_context *ctx, const unsigned char *in, in gcm_decrypt_avx512()
195 gcm_finish_avx512(struct ossl_gcm_context *ctx, const unsigned char *tag, in gcm_finish_avx512()
[all …]
/freebsd/sys/crypto/openssl/arm/
H A Dossl_aes_gcm.c23 sizeof(struct ossl_gcm_context) <= sizeof(struct ossl_cipher_context),
38 gcm_init(struct ossl_gcm_context *ctx, const void *key, size_t keylen) in gcm_init()
55 gcm_setiv(struct ossl_gcm_context *ctx, const unsigned char *iv, size_t len) in gcm_setiv()
87 gcm_finish(struct ossl_gcm_context *ctx, const unsigned char *tag, size_t len) in gcm_finish()
113 gcm_aad(struct ossl_gcm_context *ctx, const unsigned char *aad, size_t len) in gcm_aad()
157 gcm_encrypt(struct ossl_gcm_context *ctx, const unsigned char *in, in gcm_encrypt()
241 gcm_decrypt(struct ossl_gcm_context *ctx, const unsigned char *in, in gcm_decrypt()
332 gcm_tag(struct ossl_gcm_context *ctx, unsigned char *tag, size_t len) in gcm_tag()
353 struct ossl_gcm_context *ctx; in ossl_aes_gcm_setkey()