Home | History | Annotate | Download | only in keymaster

Lines Matching full:ae_ctx

50 typedef struct _ae_ctx ae_ctx;
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 */
61 int ae_ctx_sizeof(void); /* Return sizeof(ae_ctx) */
62 /* ae_allocate() allocates an ae_ctx structure, but does not initialize it.
63 * ae_free() deallocates an ae_ctx structure, but does not zero it.
64 * ae_clear() zeroes sensitive values associated with an ae_ctx structure
66 * ae_ctx_sizeof() returns sizeof(ae_ctx), to aid in any static allocations.
75 int ae_init(ae_ctx* ctx, const void* key, int key_len, int nonce_len, int tag_len);
78 * Initialize an ae_ctx context structure.
81 * ctx - Pointer to an ae_ctx structure to be initialized
94 int ae_encrypt(ae_ctx* ctx, const void* nonce, const void* pt, int pt_len, const void* ad,
101 * ctx - Pointer to an ae_ctx structure initialized by ae_init.
124 int ae_decrypt(ae_ctx* ctx, const void* nonce, const void* ct, int ct_len, const void* ad,
131 * ctx - Pointer to an ae_ctx structure initialized by ae_init.