Commit 95a62311 authored by Herbert Xu's avatar Herbert Xu

Merge branch 'ux500'

The change on the ux500 branch is needed by the regulator API.
parents 57c8aa43 3cfa435c
...@@ -545,7 +545,7 @@ static bool hash_dma_valid_data(struct scatterlist *sg, int datasize) ...@@ -545,7 +545,7 @@ static bool hash_dma_valid_data(struct scatterlist *sg, int datasize)
* *
* Initialize structures. * Initialize structures.
*/ */
static int hash_init(struct ahash_request *req) static int ux500_hash_init(struct ahash_request *req)
{ {
struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
struct hash_ctx *ctx = crypto_ahash_ctx(tfm); struct hash_ctx *ctx = crypto_ahash_ctx(tfm);
...@@ -1359,7 +1359,7 @@ static int ahash_sha1_init(struct ahash_request *req) ...@@ -1359,7 +1359,7 @@ static int ahash_sha1_init(struct ahash_request *req)
ctx->config.oper_mode = HASH_OPER_MODE_HASH; ctx->config.oper_mode = HASH_OPER_MODE_HASH;
ctx->digestsize = SHA1_DIGEST_SIZE; ctx->digestsize = SHA1_DIGEST_SIZE;
return hash_init(req); return ux500_hash_init(req);
} }
static int ahash_sha256_init(struct ahash_request *req) static int ahash_sha256_init(struct ahash_request *req)
...@@ -1372,7 +1372,7 @@ static int ahash_sha256_init(struct ahash_request *req) ...@@ -1372,7 +1372,7 @@ static int ahash_sha256_init(struct ahash_request *req)
ctx->config.oper_mode = HASH_OPER_MODE_HASH; ctx->config.oper_mode = HASH_OPER_MODE_HASH;
ctx->digestsize = SHA256_DIGEST_SIZE; ctx->digestsize = SHA256_DIGEST_SIZE;
return hash_init(req); return ux500_hash_init(req);
} }
static int ahash_sha1_digest(struct ahash_request *req) static int ahash_sha1_digest(struct ahash_request *req)
...@@ -1425,7 +1425,7 @@ static int hmac_sha1_init(struct ahash_request *req) ...@@ -1425,7 +1425,7 @@ static int hmac_sha1_init(struct ahash_request *req)
ctx->config.oper_mode = HASH_OPER_MODE_HMAC; ctx->config.oper_mode = HASH_OPER_MODE_HMAC;
ctx->digestsize = SHA1_DIGEST_SIZE; ctx->digestsize = SHA1_DIGEST_SIZE;
return hash_init(req); return ux500_hash_init(req);
} }
static int hmac_sha256_init(struct ahash_request *req) static int hmac_sha256_init(struct ahash_request *req)
...@@ -1438,7 +1438,7 @@ static int hmac_sha256_init(struct ahash_request *req) ...@@ -1438,7 +1438,7 @@ static int hmac_sha256_init(struct ahash_request *req)
ctx->config.oper_mode = HASH_OPER_MODE_HMAC; ctx->config.oper_mode = HASH_OPER_MODE_HMAC;
ctx->digestsize = SHA256_DIGEST_SIZE; ctx->digestsize = SHA256_DIGEST_SIZE;
return hash_init(req); return ux500_hash_init(req);
} }
static int hmac_sha1_digest(struct ahash_request *req) static int hmac_sha1_digest(struct ahash_request *req)
...@@ -1515,7 +1515,7 @@ static struct hash_algo_template hash_algs[] = { ...@@ -1515,7 +1515,7 @@ static struct hash_algo_template hash_algs[] = {
.conf.algorithm = HASH_ALGO_SHA1, .conf.algorithm = HASH_ALGO_SHA1,
.conf.oper_mode = HASH_OPER_MODE_HASH, .conf.oper_mode = HASH_OPER_MODE_HASH,
.hash = { .hash = {
.init = hash_init, .init = ux500_hash_init,
.update = ahash_update, .update = ahash_update,
.final = ahash_final, .final = ahash_final,
.digest = ahash_sha1_digest, .digest = ahash_sha1_digest,
...@@ -1538,7 +1538,7 @@ static struct hash_algo_template hash_algs[] = { ...@@ -1538,7 +1538,7 @@ static struct hash_algo_template hash_algs[] = {
.conf.algorithm = HASH_ALGO_SHA256, .conf.algorithm = HASH_ALGO_SHA256,
.conf.oper_mode = HASH_OPER_MODE_HASH, .conf.oper_mode = HASH_OPER_MODE_HASH,
.hash = { .hash = {
.init = hash_init, .init = ux500_hash_init,
.update = ahash_update, .update = ahash_update,
.final = ahash_final, .final = ahash_final,
.digest = ahash_sha256_digest, .digest = ahash_sha256_digest,
...@@ -1561,7 +1561,7 @@ static struct hash_algo_template hash_algs[] = { ...@@ -1561,7 +1561,7 @@ static struct hash_algo_template hash_algs[] = {
.conf.algorithm = HASH_ALGO_SHA1, .conf.algorithm = HASH_ALGO_SHA1,
.conf.oper_mode = HASH_OPER_MODE_HMAC, .conf.oper_mode = HASH_OPER_MODE_HMAC,
.hash = { .hash = {
.init = hash_init, .init = ux500_hash_init,
.update = ahash_update, .update = ahash_update,
.final = ahash_final, .final = ahash_final,
.digest = hmac_sha1_digest, .digest = hmac_sha1_digest,
...@@ -1585,7 +1585,7 @@ static struct hash_algo_template hash_algs[] = { ...@@ -1585,7 +1585,7 @@ static struct hash_algo_template hash_algs[] = {
.conf.algorithm = HASH_ALGO_SHA256, .conf.algorithm = HASH_ALGO_SHA256,
.conf.oper_mode = HASH_OPER_MODE_HMAC, .conf.oper_mode = HASH_OPER_MODE_HMAC,
.hash = { .hash = {
.init = hash_init, .init = ux500_hash_init,
.update = ahash_update, .update = ahash_update,
.final = ahash_final, .final = ahash_final,
.digest = hmac_sha256_digest, .digest = hmac_sha256_digest,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment