Searched refs:umac_ctx (Results 1 – 5 of 5) sorted by relevance
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | umac.h | 56 struct umac_ctx *umac_new(const u_char key[]); 62 int umac_reset(struct umac_ctx *ctx); 66 int umac_update(struct umac_ctx *ctx, const u_char *input, long len); 69 int umac_final(struct umac_ctx *ctx, u_char tag[], const u_char nonce[8]); 74 int umac_delete(struct umac_ctx *ctx); 78 int umac(struct umac_ctx *ctx, u_char *input, 121 struct umac_ctx *umac128_new(const u_char key[]); 122 int umac128_update(struct umac_ctx *ctx, const u_char *input, long len); 123 int umac128_final(struct umac_ctx *ctx, u_char tag[], const u_char nonce[8]); 124 int umac128_delete(struct umac_ctx *ctx);
|
| H A D | mac.c | 115 mac->umac_ctx = NULL; in mac_setup_by_alg() 150 if ((mac->umac_ctx = umac_new(mac->key)) == NULL) in mac_init() 154 if ((mac->umac_ctx = umac128_new(mac->key)) == NULL) in mac_init() 189 umac_update(mac->umac_ctx, data, datalen); in mac_compute() 190 umac_final(mac->umac_ctx, u.m, nonce); in mac_compute() 194 umac128_update(mac->umac_ctx, data, datalen); in mac_compute() 195 umac128_final(mac->umac_ctx, u.m, nonce); in mac_compute() 230 if (mac->umac_ctx != NULL) in mac_clear() 231 umac_delete(mac->umac_ctx); in mac_clear() 233 if (mac->umac_ctx != NULL) in mac_clear() [all …]
|
| H A D | mac.h | 41 struct umac_ctx *umac_ctx; member
|
| H A D | umac.c | 1204 struct umac_ctx { struct 1208 } umac_ctx; argument 1213 int umac_reset(struct umac_ctx *ctx) 1223 int umac_delete(struct umac_ctx *ctx) in umac_delete() 1228 ctx = (struct umac_ctx *)ctx->free_ptr; in umac_delete() 1236 struct umac_ctx *umac_new(const u_char key[]) in umac_new() 1241 struct umac_ctx *ctx, *octx; in umac_new() 1250 ctx = (struct umac_ctx *)((u_char *)ctx + bytes_to_add); in umac_new() 1264 int umac_final(struct umac_ctx *ctx, u_char tag[], const u_char nonce[8]) in umac_final() 1275 int umac_update(struct umac_ctx *ctx, const u_char *input, long len) in umac_update() [all …]
|
| H A D | umac128.c | 9 #define umac_ctx umac128_ctx macro
|