diff options
author | Darren Tucker <dtucker@zip.com.au> | 2012-10-05 11:02:39 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2012-10-05 11:02:39 +1000 |
commit | 427e409e99d465118fbc2f7c1ca2c5d44365f5a8 (patch) | |
tree | 13b60a8b85469f596ffef7f57f086b24ec1f4551 /umac.h | |
parent | 0dc283b13acdd4926dec1289b94badc3bbc7f321 (diff) |
- markus@cvs.openbsd.org 2012/10/04 13:21:50
[myproposal.h ssh_config.5 umac.h sshd_config.5 ssh.1 sshd.8 mac.c]
add umac128 variant; ok djm@ at n2k12
(note: further Makefile work is required)
Diffstat (limited to 'umac.h')
-rw-r--r-- | umac.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: umac.h,v 1.1 2007/06/07 19:37:34 pvalchev Exp $ */ | 1 | /* $OpenBSD: umac.h,v 1.2 2012/10/04 13:21:50 markus Exp $ */ |
2 | /* ----------------------------------------------------------------------- | 2 | /* ----------------------------------------------------------------------- |
3 | * | 3 | * |
4 | * umac.h -- C Implementation UMAC Message Authentication | 4 | * umac.h -- C Implementation UMAC Message Authentication |
@@ -116,6 +116,12 @@ int uhash(uhash_ctx_t ctx, | |||
116 | 116 | ||
117 | #endif | 117 | #endif |
118 | 118 | ||
119 | /* matching umac-128 API, we reuse umac_ctx, since it's opaque */ | ||
120 | struct umac_ctx *umac128_new(u_char key[]); | ||
121 | int umac128_update(struct umac_ctx *ctx, u_char *input, long len); | ||
122 | int umac128_final(struct umac_ctx *ctx, u_char tag[], u_char nonce[8]); | ||
123 | int umac128_delete(struct umac_ctx *ctx); | ||
124 | |||
119 | #ifdef __cplusplus | 125 | #ifdef __cplusplus |
120 | } | 126 | } |
121 | #endif | 127 | #endif |