diff options
author | George Spelvin <linux@sciencehorizons.net> | 2016-05-20 20:31:33 +0300 |
---|---|---|
committer | George Spelvin <linux@sciencehorizons.net> | 2016-05-28 22:42:50 +0300 |
commit | 917ea166f4672ec085f2cccc135c7c0eec72282c (patch) | |
tree | 8443e6afe3799bf2c50b3af7aee77de6b81623e8 /lib/digsig.c | |
parent | fcfd2fbf22d2587196890103d41e3d554c47da0e (diff) | |
download | linux-917ea166f4672ec085f2cccc135c7c0eec72282c.tar.xz |
<linux/sunrpc/svcauth.h>: Define hash_str() in terms of hashlen_string()
Finally, the first use of previous two patches: eliminate the
separate ad-hoc string hash functions in the sunrpc code.
Now hash_str() is a wrapper around hash_string(), and hash_mem() is
likewise a wrapper around full_name_hash().
Note that sunrpc code *does* call hash_mem() with a zero length, which
is why the previous patch needed to handle that in full_name_hash().
(Thanks, Bruce, for finding that!)
This also eliminates the only caller of hash_long which asks for
more than 32 bits of output.
The comment about the quality of hashlen_string() and full_name_hash()
is jumping the gun by a few patches; they aren't very impressive now,
but will be improved greatly later in the series.
Signed-off-by: George Spelvin <linux@sciencehorizons.net>
Tested-by: J. Bruce Fields <bfields@redhat.com>
Acked-by: J. Bruce Fields <bfields@redhat.com>
Cc: Jeff Layton <jlayton@poochiereds.net>
Cc: linux-nfs@vger.kernel.org
Diffstat (limited to 'lib/digsig.c')
0 files changed, 0 insertions, 0 deletions