summaryrefslogtreecommitdiff
path: root/rest/sha1.h
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-04-08 17:07:53 +0100
committerRoss Burton <ross@linux.intel.com>2009-04-08 17:10:11 +0100
commitbde4fcf22096529893a46d07b2714da154cd112d (patch)
tree9835c6f0598130b5cf88407fe53442c75d83de80 /rest/sha1.h
parent97455dcd4451607c3bc9e37ac84324efca797c98 (diff)
downloadlibrest-bde4fcf22096529893a46d07b2714da154cd112d.tar.gz
Add HMAC-SHA1 implementation
Diffstat (limited to 'rest/sha1.h')
-rw-r--r--rest/sha1.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/rest/sha1.h b/rest/sha1.h
new file mode 100644
index 0000000..3538e21
--- /dev/null
+++ b/rest/sha1.h
@@ -0,0 +1,22 @@
+/*
+ * librest - RESTful web services access
+ * Copyright (c) 2008, 2009, Intel Corporation.
+ *
+ * Authors: Ross Burton <ross@linux.intel.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU Lesser General Public License,
+ * version 2.1, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
+char * hmac_sha1 (const char *key, const char *message);