Home | History | Annotate | Download | only in keymaster

Lines Matching full:ae_ctx

59 /  space in ae_ctx), generated as needed (slightly slowing encryption and
62 / are used for L values in ae_ctx. Plaintext and ciphertexts shorter than
644 static block getL(const ae_ctx* ctx, unsigned tz) {
666 ae_ctx* ae_allocate(void* misc) {
670 p = _mm_malloc(sizeof(ae_ctx), 16);
672 if (posix_memalign(&p, 16, sizeof(ae_ctx)) != 0)
675 p = malloc(sizeof(ae_ctx));
677 return (ae_ctx*)p;
680 void ae_free(ae_ctx* ctx) {
690 int ae_clear(ae_ctx* ctx) /* Zero ae_ctx and undo initialization */
692 memset(ctx, 0, sizeof(ae_ctx));
697 return (int)sizeof(ae_ctx);
702 int ae_init(ae_ctx* ctx, const void* key, int key_len, int nonce_len, int tag_len) {
747 static block gen_offset_from_nonce(ae_ctx* ctx, const void* nonce) {
789 static void process_ad(ae_ctx* ctx, const void* ad, int ad_len, int final) {
918 int ae_encrypt(ae_ctx* ctx, const void* nonce, const void* pt, int pt_len, const void* ad,
1129 int ae_decrypt(ae_ctx* ctx, const void* nonce, const void* ct, int ct_len, const void* ad,
1350 static void vectors(ae_ctx *ctx, int len)
1372 ae_ctx ctx;