Lines Matching refs:ae_ctx
645 static block getL(const ae_ctx* ctx, unsigned tz) { in getL()
667 ae_ctx* ae_allocate(void* misc) { in ae_allocate()
671 p = _mm_malloc(sizeof(ae_ctx), 16); in ae_allocate()
673 if (posix_memalign(&p, 16, sizeof(ae_ctx)) != 0) in ae_allocate()
676 p = memalign(16, sizeof(ae_ctx)); in ae_allocate()
678 p = malloc(sizeof(ae_ctx)); in ae_allocate()
680 return (ae_ctx*)p; in ae_allocate()
683 void ae_free(ae_ctx* ctx) { in ae_free()
693 int ae_clear(ae_ctx* ctx) /* Zero ae_ctx and undo initialization */ in ae_clear()
695 memset(ctx, 0, sizeof(ae_ctx)); in ae_clear()
700 return (int)sizeof(ae_ctx); in ae_ctx_sizeof()
705 int ae_init(ae_ctx* ctx, const void* key, int key_len, int nonce_len, int tag_len) { in ae_init()
750 static block gen_offset_from_nonce(ae_ctx* ctx, const void* nonce) { in gen_offset_from_nonce()
791 static void process_ad(ae_ctx* ctx, const void* ad, int ad_len, int final) { in process_ad()
920 int ae_encrypt(ae_ctx* ctx, const void* nonce, const void* pt, int pt_len, const void* ad, in ae_encrypt()
1131 int ae_decrypt(ae_ctx* ctx, const void* nonce, const void* ct, int ct_len, const void* ad, in ae_decrypt()
1352 static void vectors(ae_ctx *ctx, int len)
1374 ae_ctx ctx;