[Pvfs2-cvs] commit by walt in pvfs2-1/src/common/security:
rsa_security.h
CVS commit program
cvs at parl.clemson.edu
Mon Apr 21 15:47:39 EDT 2008
Update of /projects/cvsroot/pvfs2-1/src/common/security
In directory parlweb1:/tmp/cvs-serv20056/src/common/security
Added Files:
Tag: cu-security-branch
rsa_security.h
Log Message:
Set up files for security mods
--- /dev/null 2004-06-24 14:04:38.000000000 -0400
+++ rsa_security.h 2008-04-21 15:47:39.000000000 -0400
@@ -0,0 +1,36 @@
+/*
+ * (C) 2008 Clemson University and The University of Chicago
+ *
+ * See COPYING in top-level directory.
+ */
+#ifndef PINT_SECURITY_H
+#define PINT_SECURITY_H
+
+#include "pvfs2-types.h"
+
+/* The PVFS_sig struct should be a multiple of 64 bits - 8 bytes) */
+#define PVFS_RSA_SIG_SIZE 128
+#define PVFS_MSG_DIG_SIZE 96
+
+typedef uchar PVFS_sig[PVFS_RSA_SIG_SIZE];
+
+#define encode_PVFS_sig (pptr,pbuf) do { \
+ memcpy(*(pptr), *(pbuf), PVFS_RSA_SIG_SIZE);
+ *(pptr) += PVFS_RSA_SIG_SIZE;
+} while (0)
+
+#define decode_PVFS_sig (pptr,pbuf) do { \
+ memcpy(*(pptr), *(pbuf), PVFS_RSA_SIG_SIZE);
+ *(pptr) += PVFS_RSA_SIG_SIZE;
+} while (0)
+
+#endif
+
+/*
+ * Local variables:
+ * c-indent-level: 4
+ * c-basic-offset: 4
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 expandtab
+ */
\ No newline at end of file
More information about the Pvfs2-cvs
mailing list