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 | 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() [all …]
|
D | ocb_utils.cpp | 42 ae_ctx* get() { return ctx_; } in get() 45 ae_ctx* ctx_;
|