Searched refs:umac_ctx (Results 1 – 5 of 5) sorted by relevance
/external/openssh/ |
D | umac.h | 55 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);
|
D | mac.c | 116 mac->umac_ctx = NULL; in mac_setup_by_alg() 151 if ((mac->umac_ctx = umac_new(mac->key)) == NULL) in mac_init() 155 if ((mac->umac_ctx = umac128_new(mac->key)) == NULL) in mac_init() 190 umac_update(mac->umac_ctx, data, datalen); in mac_compute() 191 umac_final(mac->umac_ctx, u.m, nonce); in mac_compute() 195 umac128_update(mac->umac_ctx, data, datalen); in mac_compute() 196 umac128_final(mac->umac_ctx, u.m, nonce); in mac_compute() 231 if (mac->umac_ctx != NULL) in mac_clear() 232 umac_delete(mac->umac_ctx); in mac_clear() 234 if (mac->umac_ctx != NULL) in mac_clear() [all …]
|
D | mac.h | 40 struct umac_ctx *umac_ctx; member
|
D | umac.c | 1183 struct umac_ctx { struct 1187 } umac_ctx; argument 1192 int umac_reset(struct umac_ctx *ctx) 1202 int umac_delete(struct umac_ctx *ctx) in umac_delete() 1207 ctx = (struct umac_ctx *)ctx->free_ptr; in umac_delete() 1215 struct umac_ctx *umac_new(const u_char key[]) in umac_new() 1220 struct umac_ctx *ctx, *octx; in umac_new() 1229 ctx = (struct umac_ctx *)((u_char *)ctx + bytes_to_add); in umac_new() 1243 int umac_final(struct umac_ctx *ctx, u_char tag[], const u_char nonce[8]) in umac_final() 1254 int umac_update(struct umac_ctx *ctx, const u_char *input, long len) in umac_update() [all …]
|
D | umac128.c | 8 #define umac_ctx umac128_ctx macro
|