summaryrefslogtreecommitdiffstats
path: root/sys/fs/ext2fs
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-08-01 16:04:48 +0000
committerpfg <pfg@FreeBSD.org>2013-08-01 16:04:48 +0000
commitf35ac11d77001bda7d565edd240d6d5940e7fa37 (patch)
tree13cfb9f6887391b84acb2193ac4c3292fb4155fe /sys/fs/ext2fs
parent04cde0067fd581512fef8ade34ac29e97f011ae3 (diff)
downloadFreeBSD-src-f35ac11d77001bda7d565edd240d6d5940e7fa37.zip
FreeBSD-src-f35ac11d77001bda7d565edd240d6d5940e7fa37.tar.gz
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)
Diffstat (limited to 'sys/fs/ext2fs')
-rw-r--r--sys/fs/ext2fs/ext2_hash.c34
1 files changed, 29 insertions, 5 deletions
diff --git a/sys/fs/ext2fs/ext2_hash.c b/sys/fs/ext2fs/ext2_hash.c
index 4876a7f..4d69f64 100644
--- a/sys/fs/ext2fs/ext2_hash.c
+++ b/sys/fs/ext2fs/ext2_hash.c
@@ -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])
OpenPOWER on IntegriCloud