summaryrefslogtreecommitdiff
path: root/drivers/staging/ccree/hash_defs.h
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-06-04 11:02:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-04 11:16:25 +0300
commitc928f1d7cb691584184fcb408b61ad9ed600130f (patch)
tree852d6074a67513f965906b91e9a0512a3b237083 /drivers/staging/ccree/hash_defs.h
parented7443911ec1584b182304117f1f0b0adfa02079 (diff)
downloadlinux-c928f1d7cb691584184fcb408b61ad9ed600130f.tar.xz
staging: ccree: remove unused struct
struct SepHashPrivateContext is not used anywhere in the code. Remove it. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree/hash_defs.h')
-rw-r--r--drivers/staging/ccree/hash_defs.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/staging/ccree/hash_defs.h b/drivers/staging/ccree/hash_defs.h
index 3f2b2d1521c2..9e01219f2b2a 100644
--- a/drivers/staging/ccree/hash_defs.h
+++ b/drivers/staging/ccree/hash_defs.h
@@ -57,23 +57,5 @@ enum HashCipherDoPadding {
HASH_CIPHER_DO_PADDING_RESERVE32 = S32_MAX,
};
-typedef struct SepHashPrivateContext {
- /* The current length is placed at the end of the context buffer because the hash
- * context is used for all HMAC operations as well. HMAC context includes a 64 bytes
- * K0 field. The size of struct drv_ctx_hash reserved field is 88/184 bytes depend if t
- * he SHA512 is supported ( in this case teh context size is 256 bytes).
- * The size of struct drv_ctx_hash reseved field is 20 or 52 depend if the SHA512 is supported.
- * This means that this structure size (without the reserved field can be up to 20 bytes ,
- * in case sha512 is not suppported it is 20 bytes (SEP_HASH_LENGTH_WORDS define to 2 ) and in the other
- * case it is 28 (SEP_HASH_LENGTH_WORDS define to 4)
- */
- u32 reserved[(sizeof(struct drv_ctx_hash)/sizeof(u32)) - SEP_HASH_LENGTH_WORDS - 3];
- u32 CurrentDigestedLength[SEP_HASH_LENGTH_WORDS];
- u32 KeyType;
- u32 dataCompleted;
- u32 hmacFinalization;
- /* no space left */
-} SepHashPrivateContext_s;
-
#endif /*_HASH_DEFS_H__*/