mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu: "This fixes the following issues: - a crash regression in the new skcipher walker - incorrect return value in public_key_verify_signature - fix for in-place signing in the sign-file utility" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: skcipher - fix crash in virtual walk sign-file: Fix inplace signing when src and dst names are both specified crypto: asymmetric_keys - set error code on failure
This commit is contained in:
commit
19c75bcbe0
3 changed files with 5 additions and 2 deletions
|
@ -121,6 +121,7 @@ int public_key_verify_signature(const struct public_key *pkey,
|
||||||
if (ret)
|
if (ret)
|
||||||
goto error_free_req;
|
goto error_free_req;
|
||||||
|
|
||||||
|
ret = -ENOMEM;
|
||||||
outlen = crypto_akcipher_maxsize(tfm);
|
outlen = crypto_akcipher_maxsize(tfm);
|
||||||
output = kmalloc(outlen, GFP_KERNEL);
|
output = kmalloc(outlen, GFP_KERNEL);
|
||||||
if (!output)
|
if (!output)
|
||||||
|
|
|
@ -226,7 +226,9 @@ static int skcipher_next_slow(struct skcipher_walk *walk, unsigned int bsize)
|
||||||
void *v;
|
void *v;
|
||||||
|
|
||||||
if (!phys) {
|
if (!phys) {
|
||||||
buffer = walk->buffer ?: walk->page;
|
if (!walk->buffer)
|
||||||
|
walk->buffer = walk->page;
|
||||||
|
buffer = walk->buffer;
|
||||||
if (buffer)
|
if (buffer)
|
||||||
goto ok;
|
goto ok;
|
||||||
}
|
}
|
||||||
|
|
|
@ -267,7 +267,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
x509_name = argv[2];
|
x509_name = argv[2];
|
||||||
module_name = argv[3];
|
module_name = argv[3];
|
||||||
if (argc == 5) {
|
if (argc == 5 && strcmp(argv[3], argv[4]) != 0) {
|
||||||
dest_name = argv[4];
|
dest_name = argv[4];
|
||||||
replace_orig = false;
|
replace_orig = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue