summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2015-10-16 00:17:59 -0700
committerSara Golemon <sgolemon@fb.com>2015-10-16 00:19:00 -0700
commite800da99204e55e48eb3dfe2421e62ab6fd3cd4c (patch)
treecd756c685a2e877ddaad0ccc83e12de018e23a19
parentd244b54c67cc2725283b78d4bb128501ae7910d3 (diff)
downloadphp-git-e800da99204e55e48eb3dfe2421e62ab6fd3cd4c.tar.gz
Add missing NEWS entry, copyright notice, and vim settings
Should have gone with d244b54c67cc2725283b78d4bb128501ae7910d3
-rw-r--r--NEWS3
-rw-r--r--ext/hash/hash_sha3.c18
-rw-r--r--ext/hash/php_hash_sha3.h8
3 files changed, 29 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index a0f4fb2ffe..b27adf6308 100644
--- a/NEWS
+++ b/NEWS
@@ -6,4 +6,7 @@ Standard
. Implemented FR #55716 (Add an option to pass a custom stream context to
get_headers()). (Ferenc)
+Hash
+ . Added SHA3 fixed mode algorithms (224, 256, 384, and 512 bit). (Sara)
+
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>
diff --git a/ext/hash/hash_sha3.c b/ext/hash/hash_sha3.c
index 2fb24b316b..e82bd24027 100644
--- a/ext/hash/hash_sha3.c
+++ b/ext/hash/hash_sha3.c
@@ -1,3 +1,21 @@
+/*
+ +----------------------------------------------------------------------+
+ | PHP Version 7 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997-2015 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 3.01 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available through the world-wide-web at the following url: |
+ | http://www.php.net/license/3_01.txt |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Author: Sara Golemon <pollita@php.net> |
+ +----------------------------------------------------------------------+
+*/
+
#include "php_hash_sha3.h"
#if (defined(__APPLE__) || defined(__APPLE_CC__)) && \
diff --git a/ext/hash/php_hash_sha3.h b/ext/hash/php_hash_sha3.h
index 65196ab7f1..c95efc9104 100644
--- a/ext/hash/php_hash_sha3.h
+++ b/ext/hash/php_hash_sha3.h
@@ -49,3 +49,11 @@ PHP_HASH_API void PHP_SHA3512Update(PHP_SHA3_512_CTX*, const unsigned char*, uns
PHP_HASH_API void PHP_SAH3512Final(unsigned char[32], PHP_SHA3_512_CTX*);
#endif
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */