diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-10-11 16:46:45 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-10-11 16:46:45 +0300 |
commit | 9e97964d5e500d8d0df94e1a79ad715ad4f9c995 (patch) | |
tree | afc487aa0301fb1594187b433d7daf67add76ace /net/mac80211 | |
parent | 90a53e4432b12288316efaa5f308adafb8d304b0 (diff) | |
download | linux-9e97964d5e500d8d0df94e1a79ad715ad4f9c995.tar.xz |
mac80211: use crypto_aead_authsize()
Evidently this API is intended to be used to isolate against
API changes, so use it instead of accessing ->authsize.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/aead_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/aead_api.c b/net/mac80211/aead_api.c index 347f13953b2c..160f9df30402 100644 --- a/net/mac80211/aead_api.c +++ b/net/mac80211/aead_api.c @@ -21,7 +21,7 @@ int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, u8 *data, size_t data_len, u8 *mic) { - size_t mic_len = tfm->authsize; + size_t mic_len = crypto_aead_authsize(tfm); struct scatterlist sg[3]; struct aead_request *aead_req; int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); @@ -52,7 +52,7 @@ int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, u8 *data, size_t data_len, u8 *mic) { - size_t mic_len = tfm->authsize; + size_t mic_len = crypto_aead_authsize(tfm); struct scatterlist sg[3]; struct aead_request *aead_req; int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); |