Lines Matching refs:ae_ctx
656 static block getL(const ae_ctx* ctx, unsigned tz) { in getL()
678 ae_ctx* ae_allocate(void* misc) { in ae_allocate()
682 p = _mm_malloc(sizeof(ae_ctx), 16); in ae_allocate()
684 if (posix_memalign(&p, 16, sizeof(ae_ctx)) != 0) in ae_allocate()
687 p = memalign(16, sizeof(ae_ctx)); in ae_allocate()
689 p = malloc(sizeof(ae_ctx)); in ae_allocate()
691 return (ae_ctx*)p; in ae_allocate()
694 void ae_free(ae_ctx* ctx) { in ae_free()
704 int ae_clear(ae_ctx* ctx) /* Zero ae_ctx and undo initialization */ in ae_clear()
706 memset(ctx, 0, sizeof(ae_ctx)); in ae_clear()
711 return (int)sizeof(ae_ctx); in ae_ctx_sizeof()
716 int ae_init(ae_ctx* ctx, const void* key, int key_len, int nonce_len, int tag_len) { in ae_init()
761 static block gen_offset_from_nonce(ae_ctx* ctx, const void* nonce) { in gen_offset_from_nonce()
802 static void process_ad(ae_ctx* ctx, const void* ad, int ad_len, int final) { in process_ad()
938 int ae_encrypt(ae_ctx* ctx, const void* nonce, const void* pt, int pt_len, const void* ad, in ae_encrypt()
1155 int ae_decrypt(ae_ctx* ctx, const void* nonce, const void* ct, int ct_len, const void* ad, in ae_decrypt()
1382 static void vectors(ae_ctx *ctx, int len)
1404 ae_ctx ctx;