Home
last modified time | relevance | path

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

/external/openssh/
Dumac.h55 struct umac_ctx *umac_new(const u_char key[]);
61 int umac_reset(struct umac_ctx *ctx);
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,
120 struct umac_ctx *umac128_new(const u_char key[]);
121 int umac128_update(struct umac_ctx *ctx, const u_char *input, long len);
122 int umac128_final(struct umac_ctx *ctx, u_char tag[], const u_char nonce[8]);
123 int umac128_delete(struct umac_ctx *ctx);
Dmac.c126 mac->umac_ctx = NULL; in mac_setup_by_alg()
161 if ((mac->umac_ctx = umac_new(mac->key)) == NULL) in mac_init()
165 if ((mac->umac_ctx = umac128_new(mac->key)) == NULL) in mac_init()
200 umac_update(mac->umac_ctx, data, datalen); in mac_compute()
201 umac_final(mac->umac_ctx, u.m, nonce); in mac_compute()
205 umac128_update(mac->umac_ctx, data, datalen); in mac_compute()
206 umac128_final(mac->umac_ctx, u.m, nonce); in mac_compute()
241 if (mac->umac_ctx != NULL) in mac_clear()
242 umac_delete(mac->umac_ctx); in mac_clear()
244 if (mac->umac_ctx != NULL) in mac_clear()
[all …]
Dmac.h40 struct umac_ctx *umac_ctx; member
Dumac.c1178 struct umac_ctx { struct
1182 } umac_ctx; argument
1187 int umac_reset(struct umac_ctx *ctx)
1197 int umac_delete(struct umac_ctx *ctx) in umac_delete()
1202 ctx = (struct umac_ctx *)ctx->free_ptr; in umac_delete()
1210 struct umac_ctx *umac_new(const u_char key[]) in umac_new()
1215 struct umac_ctx *ctx, *octx; in umac_new()
1224 ctx = (struct umac_ctx *)((u_char *)ctx + bytes_to_add); in umac_new()
1237 int umac_final(struct umac_ctx *ctx, u_char tag[], const u_char nonce[8]) in umac_final()
1248 int umac_update(struct umac_ctx *ctx, const u_char *input, long len) in umac_update()
[all …]
DChangeLog3409 Map umac_ctx struct name too.