Skip to content
Commit 561141dd authored by Chuck Lever's avatar Chuck Lever
Browse files

SUNRPC: Use a static buffer for the checksum initialization vector



Allocating and zeroing a buffer during every call to
krb5_etm_checksum() is inefficient. Instead, set aside a static
buffer that is the maximum crypto block size, and use a portion
(or all) of that.

Reported-by: default avatarMarkus Elfring <Markus.Elfring@web.de>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 3cfcfc10
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment