Searched refs:ae_ctx (Results 1 – 4 of 4) sorted by relevance
/system/keymaster/ |
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,
|
D | ocb.c | 644 static block getL(const ae_ctx* ctx, unsigned tz) { in getL() 666 ae_ctx* ae_allocate(void* misc) { in ae_allocate() 670 p = _mm_malloc(sizeof(ae_ctx), 16); in ae_allocate() 672 if (posix_memalign(&p, 16, sizeof(ae_ctx)) != 0) in ae_allocate() 675 p = malloc(sizeof(ae_ctx)); in ae_allocate() 677 return (ae_ctx*)p; in ae_allocate() 680 void ae_free(ae_ctx* ctx) { in ae_free() 690 int ae_clear(ae_ctx* ctx) /* Zero ae_ctx and undo initialization */ in ae_clear() 692 memset(ctx, 0, sizeof(ae_ctx)); in ae_clear() 697 return (int)sizeof(ae_ctx); in ae_ctx_sizeof() [all …]
|
D | ocb_utils.cpp | 42 ae_ctx* get() { return ctx_; } in get() 45 ae_ctx* ctx_;
|
D | android_keymaster.cpp | 74 void operator()(ae_ctx* ctx) const { ae_free(ctx); } in operator ()() 76 typedef UniquePtr<ae_ctx, AE_CTX_Delete> Unique_ae_ctx;
|