crypto: aspeed/hash - Remove sha_iv
Removed unused sha_iv field from request context. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>pull/1279/head
parent
278d737cc2
commit
72c50eb4f5
|
|
@ -593,7 +593,6 @@ static int aspeed_sham_init(struct ahash_request *req)
|
|||
rctx->flags |= SHA_FLAGS_SHA1;
|
||||
rctx->digsize = SHA1_DIGEST_SIZE;
|
||||
rctx->block_size = SHA1_BLOCK_SIZE;
|
||||
rctx->sha_iv = sha1_iv;
|
||||
rctx->ivsize = 32;
|
||||
memcpy(rctx->digest, sha1_iv, rctx->ivsize);
|
||||
break;
|
||||
|
|
@ -602,7 +601,6 @@ static int aspeed_sham_init(struct ahash_request *req)
|
|||
rctx->flags |= SHA_FLAGS_SHA224;
|
||||
rctx->digsize = SHA224_DIGEST_SIZE;
|
||||
rctx->block_size = SHA224_BLOCK_SIZE;
|
||||
rctx->sha_iv = sha224_iv;
|
||||
rctx->ivsize = 32;
|
||||
memcpy(rctx->digest, sha224_iv, rctx->ivsize);
|
||||
break;
|
||||
|
|
@ -611,7 +609,6 @@ static int aspeed_sham_init(struct ahash_request *req)
|
|||
rctx->flags |= SHA_FLAGS_SHA256;
|
||||
rctx->digsize = SHA256_DIGEST_SIZE;
|
||||
rctx->block_size = SHA256_BLOCK_SIZE;
|
||||
rctx->sha_iv = sha256_iv;
|
||||
rctx->ivsize = 32;
|
||||
memcpy(rctx->digest, sha256_iv, rctx->ivsize);
|
||||
break;
|
||||
|
|
@ -621,7 +618,6 @@ static int aspeed_sham_init(struct ahash_request *req)
|
|||
rctx->flags |= SHA_FLAGS_SHA384;
|
||||
rctx->digsize = SHA384_DIGEST_SIZE;
|
||||
rctx->block_size = SHA384_BLOCK_SIZE;
|
||||
rctx->sha_iv = (const __be32 *)sha384_iv;
|
||||
rctx->ivsize = 64;
|
||||
memcpy(rctx->digest, sha384_iv, rctx->ivsize);
|
||||
break;
|
||||
|
|
@ -631,7 +627,6 @@ static int aspeed_sham_init(struct ahash_request *req)
|
|||
rctx->flags |= SHA_FLAGS_SHA512;
|
||||
rctx->digsize = SHA512_DIGEST_SIZE;
|
||||
rctx->block_size = SHA512_BLOCK_SIZE;
|
||||
rctx->sha_iv = (const __be32 *)sha512_iv;
|
||||
rctx->ivsize = 64;
|
||||
memcpy(rctx->digest, sha512_iv, rctx->ivsize);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -184,7 +184,6 @@ struct aspeed_sham_reqctx {
|
|||
size_t digsize;
|
||||
size_t block_size;
|
||||
size_t ivsize;
|
||||
const __be32 *sha_iv;
|
||||
|
||||
/* remain data buffer */
|
||||
dma_addr_t buffer_dma_addr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue