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) | |
download | openssh-git-427e409e99d465118fbc2f7c1ca2c5d44365f5a8.tar.gz |
- 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 @@ -/* $OpenBSD: umac.h,v 1.1 2007/06/07 19:37:34 pvalchev Exp $ */ +/* $OpenBSD: umac.h,v 1.2 2012/10/04 13:21:50 markus Exp $ */ /* ----------------------------------------------------------------------- * * umac.h -- C Implementation UMAC Message Authentication @@ -116,6 +116,12 @@ int uhash(uhash_ctx_t ctx, #endif +/* matching umac-128 API, we reuse umac_ctx, since it's opaque */ +struct umac_ctx *umac128_new(u_char key[]); +int umac128_update(struct umac_ctx *ctx, u_char *input, long len); +int umac128_final(struct umac_ctx *ctx, u_char tag[], u_char nonce[8]); +int umac128_delete(struct umac_ctx *ctx); + #ifdef __cplusplus } #endif |