]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/crypto/ccp/ccp-crypto.h
crypto: ccp - Change data length declarations to u64
[karo-tx-linux.git] / drivers / crypto / ccp / ccp-crypto.h
index 45f17c394e4a815ae41abd6a8c651528bee397bb..b222231b61693bda60cbcba9a34d0fbe75003320 100644 (file)
@@ -39,7 +39,7 @@ struct ccp_crypto_ablkcipher_alg {
 struct ccp_crypto_ahash_alg {
        struct list_head entry;
 
-       const u32 *init;
+       const __be32 *init;
        u32 type;
        u32 mode;
 
@@ -110,7 +110,10 @@ struct ccp_aes_cmac_req_ctx {
        unsigned int null_msg;
        unsigned int final;
 
-       unsigned int hash_cnt;
+       struct scatterlist *src;
+       unsigned int nbytes;
+
+       u64 hash_cnt;
        unsigned int hash_rem;
 
        struct sg_table data_sg;
@@ -149,7 +152,10 @@ struct ccp_sha_req_ctx {
        unsigned int first;
        unsigned int final;
 
-       unsigned int hash_cnt;
+       struct scatterlist *src;
+       unsigned int nbytes;
+
+       u64 hash_cnt;
        unsigned int hash_rem;
 
        struct sg_table data_sg;