| { | ||
| "git": { | ||
| "sha1": "47b6dd6ca10a52815e58015a212322ac64d1caec" | ||
| } | ||
| } | ||
| "sha1": "5c08915b4314e3bf6e37600b2af93f5fcdde7d31" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
+30
-12
@@ -6,8 +6,7 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| # with all versions of Cargo and also rewrite `path` dependencies | ||
| # to registry (e.g., crates.io) dependencies | ||
| # to registry (e.g., crates.io) dependencies. | ||
| # | ||
| # If you believe there's an error in this file please file an | ||
| # issue against the rust-lang/cargo repository. If you're | ||
| # editing this file be aware that the upstream Cargo.toml | ||
| # will likely look very different (and much more reasonable) | ||
| # If you are reading this file be aware that the original Cargo.toml | ||
| # will likely look very different (and much more reasonable). | ||
| # See Cargo.toml.orig for the original contents. | ||
@@ -17,3 +16,3 @@ [package] | ||
| name = "ahash" | ||
| version = "0.4.7" | ||
| version = "0.4.8" | ||
| authors = ["Tom Kaitchuck <Tom.Kaitchuck@gmail.com>"] | ||
@@ -23,9 +22,23 @@ description = "A non-cryptographic hash function using AES-NI for high performance" | ||
| readme = "README.md" | ||
| keywords = ["hash", "hashmap", "aes", "aes-ni", "no-std"] | ||
| keywords = [ | ||
| "hash", | ||
| "hashmap", | ||
| "aes", | ||
| "aes-ni", | ||
| "no-std", | ||
| ] | ||
| license = "MIT OR Apache-2.0" | ||
| repository = "https://github.com/tkaitchuck/ahash" | ||
| [package.metadata.docs.rs] | ||
| features = ["std"] | ||
| rustc-args = ["-C", "target-feature=+aes"] | ||
| rustdoc-args = ["-C", "target-feature=+aes"] | ||
| rustc-args = [ | ||
| "-C", | ||
| "target-feature=+aes", | ||
| ] | ||
| rustdoc-args = [ | ||
| "-C", | ||
| "target-feature=+aes", | ||
| ] | ||
| [profile.bench] | ||
@@ -35,3 +48,3 @@ opt-level = 3 | ||
| codegen-units = 1 | ||
| debug = false | ||
| debug = 0 | ||
| debug-assertions = false | ||
@@ -43,3 +56,3 @@ | ||
| codegen-units = 1 | ||
| debug = false | ||
| debug = 0 | ||
| debug-assertions = false | ||
@@ -68,5 +81,7 @@ | ||
| harness = false | ||
| [dependencies.const-random] | ||
| version = "0.1.6" | ||
| optional = true | ||
| [dev-dependencies.criterion] | ||
@@ -95,4 +110,7 @@ version = "0.3.2" | ||
| compile-time-rng = ["const-random"] | ||
| default = ["compile-time-rng", "std"] | ||
| default = [ | ||
| "compile-time-rng", | ||
| "std", | ||
| ] | ||
| specialize = [] | ||
| std = [] |
+7
-6
@@ -171,6 +171,6 @@ use crate::convert::*; | ||
| current[0] = aesenc(current[0], tail[0]); | ||
| current[1] = aesenc(current[1], tail[1]); | ||
| current[1] = aesdec(current[1], tail[1]); | ||
| current[2] = aesenc(current[2], tail[2]); | ||
| current[3] = aesenc(current[3], tail[3]); | ||
| let mut sum: [u128; 2] = [self.key, self.key]; | ||
| current[3] = aesdec(current[3], tail[3]); | ||
| let mut sum: [u128; 2] = [self.key, !self.key]; | ||
| sum[0] = add_by_64s(sum[0].convert(), tail[0].convert()).convert(); | ||
@@ -192,4 +192,5 @@ sum[1] = add_by_64s(sum[1].convert(), tail[1].convert()).convert(); | ||
| } | ||
| self.hash_in_2(aesenc(current[0], current[1]), aesenc(current[2], current[3])); | ||
| self.hash_in(add_by_64s(sum[0].convert(), sum[1].convert()).convert()); | ||
| self.hash_in_2(current[0], current[1]); | ||
| self.hash_in_2(current[2], current[3]); | ||
| self.hash_in_2(sum[0], sum[1]); | ||
| } else { | ||
@@ -218,3 +219,3 @@ //len 33-64 | ||
| let result: [u64; 2] = aesenc(aesenc(combined, self.key), combined).convert(); | ||
| result[0] | ||
| result[1] | ||
| } | ||
@@ -221,0 +222,0 @@ } |
Sorry, the diff of this file is not supported yet