svn commit: r253861 - head/sys/fs/ext2fs
Pedro F. Giffuni
pfg at FreeBSD.org
Thu Aug 1 16:04:49 UTC 2013
Author: pfg
Date: Thu Aug 1 16:04:48 2013
New Revision: 253861
URL: http://svnweb.freebsd.org/changeset/base/253861
Log:
Add license for the half MD4 algorithm used in ext2_half_md4().
The htree implementation uses code derived from the
RSA Data Security, Inc. MD4 Message-Digest Algorithm.
Add a proper licensing statement for the code and clarify
the corresponding comments.
Approved by: core (hrs)
Modified:
head/sys/fs/ext2fs/ext2_hash.c
Modified: head/sys/fs/ext2fs/ext2_hash.c
==============================================================================
--- head/sys/fs/ext2fs/ext2_hash.c Thu Aug 1 13:18:47 2013 (r253860)
+++ head/sys/fs/ext2fs/ext2_hash.c Thu Aug 1 16:04:48 2013 (r253861)
@@ -27,6 +27,30 @@
* $FreeBSD$
*/
+/*
+ * The following notice applies to the code in ext2_half_md4():
+ *
+ * Copyright (C) 1990-2, RSA Data Security, Inc. All rights reserved.
+ *
+ * License to copy and use this software is granted provided that it
+ * is identified as the "RSA Data Security, Inc. MD4 Message-Digest
+ * Algorithm" in all material mentioning or referencing this software
+ * or this function.
+ *
+ * License is also granted to make and use derivative works provided
+ * that such works are identified as "derived from the RSA Data
+ * Security, Inc. MD4 Message-Digest Algorithm" in all material
+ * mentioning or referencing the derived work.
+ *
+ * RSA Data Security, Inc. makes no representations concerning either
+ * the merchantability of this software or the suitability of this
+ * software for any particular purpose. It is provided "as is"
+ * without express or implied warranty of any kind.
+ *
+ * These notices must be retained in any copies of any part of this
+ * documentation and/or software.
+ */
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
@@ -69,13 +93,13 @@
/*
* MD4 basic transformation. It transforms state based on block.
*
- * This is a half md4 algorithm because in Linux it uses this algorithm in dir
- * index. This function is copied from kern/md4c.c file and is modified as
- * necessary.
+ * This is a half md4 algorithm since Linux uses this algorithm for dir
+ * index. This function is derived from the RSA Data Security, Inc. MD4
+ * Message-Digest Algorithm and was modified as necessary.
*
* The return value of this function is uint32_t in Linux, but actually we don't
- * need to check this value. So in our version this function don't return any
- * values.
+ * need to check this value, so in our version this function doesn't return any
+ * value.
*/
static void
ext2_half_md4(uint32_t hash[4], uint32_t data[8])
More information about the svn-src-all
mailing list