Searched refs:ae_ctx (Results 1 – 3 of 3) sorted by relevance
/system/keymaster/include/keymaster/key_blob_utils/ |
D | ae.h | 50 typedef struct _ae_ctx ae_ctx; typedef 58 ae_ctx* ae_allocate(void* misc); /* Allocate ae_ctx, set optional ptr */ 59 void ae_free(ae_ctx* ctx); /* Deallocate ae_ctx struct */ 60 int ae_clear(ae_ctx* ctx); /* Undo initialization */ 75 int ae_init(ae_ctx* ctx, const void* key, int key_len, int nonce_len, int tag_len); 94 int ae_encrypt(ae_ctx* ctx, const void* nonce, const void* pt, int pt_len, const void* ad, 124 int ae_decrypt(ae_ctx* ctx, const void* nonce, const void* ct, int ct_len, const void* ad,
|
/system/keymaster/key_blob_utils/ |
D | ocb.c | 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() [all …]
|
D | ocb_utils.cpp | 41 ae_ctx* get() { return ctx_; } in get() 44 ae_ctx* ctx_;
|