mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
crypto: gcm - add GCM IV size constant
commit ef78032459
upstream.
Many GCM users use directly GCM IV size instead of using some constant.
This patch add all IV size constant used by GCM.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e50f1d7c0d
commit
cffaf2b6b1
1 changed files with 8 additions and 0 deletions
8
include/crypto/gcm.h
Normal file
8
include/crypto/gcm.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef _CRYPTO_GCM_H
|
||||
#define _CRYPTO_GCM_H
|
||||
|
||||
#define GCM_AES_IV_SIZE 12
|
||||
#define GCM_RFC4106_IV_SIZE 8
|
||||
#define GCM_RFC4543_IV_SIZE 8
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue