]> andersk Git - openssh.git/blobdiff - mac.h
- markus@cvs.openbsd.org 2001/02/11 12:59:25
[openssh.git] / mac.h
diff --git a/hmac.h b/mac.h
similarity index 82%
rename from hmac.h
rename to mac.h
index d9dc048a74b8b666a672e7c8b62f0b7f77b8361d..6173eaa66a4150c97082532c4048a3ba179c4704 100644 (file)
--- a/hmac.h
+++ b/mac.h
@@ -1,7 +1,6 @@
-/*     $OpenBSD: hmac.h,v 1.4 2001/01/29 01:58:15 niklas Exp $ */
-
+/*      $OpenBSD: mac.h,v 1.1 2001/02/11 12:59:24 markus Exp $   */
 /*
- * Copyright (c) 2000 Markus Friedl.  All rights reserved.
+ * Copyright (c) 2001 Markus Friedl.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#ifndef HMAC_H
-#define HMAC_H
-
-u_char *
-hmac(
-    EVP_MD *evp_md,
-    u_int seqno,
-    u_char *data, int datalen,
-    u_char *key, int len);
 
-#endif
+int    mac_valid(const char *names);
+int    mac_init(Mac *mac, char *name);
+u_char *mac_compute(Mac *mac, u_int32_t seqno, u_char *data, int datalen);
This page took 0.036567 seconds and 4 git commands to generate.