Searched refs:umac_ctx (Results 1 - 5 of 5) sorted by relevance

/freebsd-13-stable/crypto/openssh/
H A Dumac.h55 struct umac_ctx *umac_new(const u_char key[]);
56 /* Dynamically allocate a umac_ctx struct, initialize variables,
61 int umac_reset(struct umac_ctx *ctx);
62 /* Reset a umac_ctx to begin authenicating a new message */
65 int umac_update(struct umac_ctx *ctx, const u_char *input, long len);
68 int umac_final(struct umac_ctx *ctx, u_char tag[], const u_char nonce[8]);
73 int umac_delete(struct umac_ctx *ctx);
77 int umac(struct umac_ctx *ctx, u_char *input,
119 /* matching umac-128 API, we reuse umac_ctx, since it's opaque */
120 struct umac_ctx *umac128_ne
[all...]
H A Dumac128.c9 #undef umac_ctx macro
16 #define umac_ctx umac128_ctx macro
H A Dmac.h40 struct umac_ctx *umac_ctx; member in struct:sshmac
H A Dmac.c119 mac->umac_ctx = NULL;
154 if ((mac->umac_ctx = umac_new(mac->key)) == NULL)
158 if ((mac->umac_ctx = umac128_new(mac->key)) == NULL)
193 umac_update(mac->umac_ctx, data, datalen);
194 umac_final(mac->umac_ctx, u.m, nonce);
198 umac128_update(mac->umac_ctx, data, datalen);
199 umac128_final(mac->umac_ctx, u.m, nonce);
234 if (mac->umac_ctx != NULL)
235 umac_delete(mac->umac_ctx);
237 if (mac->umac_ctx !
[all...]
H A Dumac.c1182 struct umac_ctx { struct
1186 } umac_ctx; variable in typeref:struct:umac_ctx
1191 int umac_reset(struct umac_ctx *ctx)
1201 int umac_delete(struct umac_ctx *ctx)
1206 ctx = (struct umac_ctx *)ctx->free_ptr;
1215 struct umac_ctx *umac_new(const u_char key[])
1216 /* Dynamically allocate a umac_ctx struct, initialize variables,
1220 struct umac_ctx *ctx, *octx;
1229 ctx = (struct umac_ctx *)((u_char *)ctx + bytes_to_add);
1243 int umac_final(struct umac_ctx *ct
[all...]

Completed in 62 milliseconds