Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1306)

Unified Diff: openssl/ssl/fnv1a64.c

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « openssl/ssl/fnv1a64.h ('k') | openssl/ssl/install.com » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: openssl/ssl/fnv1a64.c
===================================================================
--- openssl/ssl/fnv1a64.c (revision 105093)
+++ openssl/ssl/fnv1a64.c (working copy)
@@ -1,37 +0,0 @@
-/* ssl/fnv1a64.c */
-
-/* Open sourcing FIXME: include correct copyright header here. */
-
-/* Fowler-Noll-Vo (FNV) hash: http://isthe.com/chongo/tech/comp/fnv/ */
-
-#include "fnv1a64.h"
-
-/* http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-param */
-static const FNV1A64 FNV1A64_OFFSET_BASIS = 14695981039346656037ull;
-static const FNV1A64 FNV1A64_PRIME = 1099511628211ull;
-
-void fnv1a64_init(FNV1A64* ctx)
- {
- *ctx = FNV1A64_OFFSET_BASIS;
- }
-
-void fnv1a64_update(FNV1A64* ctx, const void* voiddata, unsigned int length)
- {
- const unsigned char *data = voiddata;
- unsigned int i;
-
- for (i = 0; i < length; i++)
- {
- *ctx ^= data[i];
- *ctx *= FNV1A64_PRIME;
- }
- }
-
-void fnv1a64_final(unsigned char out[8], const FNV1A64 *ctx)
- {
- const FNV1A64 native_endian_result = *ctx;
- unsigned int i;
-
- for (i = 0; i < 8; i++)
- out[i] = (unsigned char) (native_endian_result >> (8 * (sizeof(FNV1A64) - i - 1)));
- }
« no previous file with comments | « openssl/ssl/fnv1a64.h ('k') | openssl/ssl/install.com » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698