diff options
author | Eric Biggers <ebiggers@google.com> | 2019-12-09 12:40:54 -0800 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2019-12-31 10:33:50 -0600 |
commit | 2a5831b1d29754c216ad3b06a018c29e74d4ad10 (patch) | |
tree | 759003c388da5f10d3fcdee4bef034683301f51c /fs/crypto/hkdf.c | |
parent | c64cfb989f008eed2622e822e90f2fcabd49d605 (diff) |
fscrypt: constify struct fscrypt_hkdf parameter to fscrypt_hkdf_expand()
Constify the struct fscrypt_hkdf parameter to fscrypt_hkdf_expand().
This makes it clearer that struct fscrypt_hkdf contains the key only,
not any per-request state.
Link: https://lore.kernel.org/r/20191209204054.227736-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/crypto/hkdf.c')
-rw-r--r-- | fs/crypto/hkdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/crypto/hkdf.c b/fs/crypto/hkdf.c index f21873e1b467..efb95bd19a89 100644 --- a/fs/crypto/hkdf.c +++ b/fs/crypto/hkdf.c @@ -112,7 +112,7 @@ out: * adds to its application-specific info strings to guarantee that it doesn't * accidentally repeat an info string when using HKDF for different purposes.) */ -int fscrypt_hkdf_expand(struct fscrypt_hkdf *hkdf, u8 context, +int fscrypt_hkdf_expand(const struct fscrypt_hkdf *hkdf, u8 context, const u8 *info, unsigned int infolen, u8 *okm, unsigned int okmlen) { |