OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | --- a/drivers/crypto/mxs-dcp.c |
1 | --- a/drivers/crypto/mxs-dcp.c |
|
2 | +++ b/drivers/crypto/mxs-dcp.c |
2 | +++ b/drivers/crypto/mxs-dcp.c |
|
3 | @@ -777,6 +777,24 @@ static void dcp_sha_cra_exit(struct cryp |
3 | @@ -770,6 +770,24 @@ static void dcp_sha_cra_exit(struct cryp |
|
4 | { |
4 | { |
|
5 | } |
5 | } |
|
Line 6... | Line 6... | |||
6 | |
6 | |
|
7 | +static int dcp_sha_export(struct ahash_request *req, void *out) |
7 | +static int dcp_sha_export(struct ahash_request *req, void *out) |
|
Line 23... | Line 23... | |||
23 | +} |
23 | +} |
|
24 | + |
24 | + |
|
25 | /* AES 128 ECB and AES 128 CBC */ |
25 | /* AES 128 ECB and AES 128 CBC */ |
|
26 | static struct crypto_alg dcp_aes_algs[] = { |
26 | static struct crypto_alg dcp_aes_algs[] = { |
|
27 | { |
27 | { |
|
28 | @@ -836,8 +854,11 @@ static struct ahash_alg dcp_sha1_alg = { |
28 | @@ -829,8 +847,11 @@ static struct ahash_alg dcp_sha1_alg = { |
|
29 | .final = dcp_sha_final, |
29 | .final = dcp_sha_final, |
|
30 | .finup = dcp_sha_finup, |
30 | .finup = dcp_sha_finup, |
|
31 | .digest = dcp_sha_digest, |
31 | .digest = dcp_sha_digest, |
|
32 | + .import = dcp_sha_import, |
32 | + .import = dcp_sha_import, |
|
33 | + .export = dcp_sha_export, |
33 | + .export = dcp_sha_export, |
|
Line 35... | Line 35... | |||
35 | .digestsize = SHA1_DIGEST_SIZE, |
35 | .digestsize = SHA1_DIGEST_SIZE, |
|
36 | + .statesize = sizeof(struct dcp_sha_req_ctx), |
36 | + .statesize = sizeof(struct dcp_sha_req_ctx), |
|
37 | .base = { |
37 | .base = { |
|
38 | .cra_name = "sha1", |
38 | .cra_name = "sha1", |
|
39 | .cra_driver_name = "sha1-dcp", |
39 | .cra_driver_name = "sha1-dcp", |
|
40 | @@ -860,8 +881,11 @@ static struct ahash_alg dcp_sha256_alg = |
40 | @@ -853,8 +874,11 @@ static struct ahash_alg dcp_sha256_alg = |
|
41 | .final = dcp_sha_final, |
41 | .final = dcp_sha_final, |
|
42 | .finup = dcp_sha_finup, |
42 | .finup = dcp_sha_finup, |
|
43 | .digest = dcp_sha_digest, |
43 | .digest = dcp_sha_digest, |
|
44 | + .import = dcp_sha_import, |
44 | + .import = dcp_sha_import, |
|
45 | + .export = dcp_sha_export, |
45 | + .export = dcp_sha_export, |