Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5785e536 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Revert "crypto: public_key: fix overflow during implicit conversion"



This reverts commit cfdd25cd which is
commit f985911b7bc75d5c98ed24d8aaa8b94c590f7c6a upstream and came in the
5.10.67 release.

It breaks the ABI for the public_key_verify_signature() function.  While
it does fix a useful thing, it shouldn't be an issue for any Android
devices so reverting should be safe.

Fixes: 5df14bba0056 ("crypto: public_key: fix overflow during implicit conversion")
Cc: Will Deacon <willdeacon@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I30ee9fec7d778b5d10483917975dd0ebe14aab88
parent c4f92aff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -38,9 +38,9 @@ extern void public_key_free(struct public_key *key);
struct public_key_signature {
	struct asymmetric_key_id *auth_ids[2];
	u8 *s;			/* Signature */
	u8 *digest;
	u32 s_size;		/* Number of bytes in signature */
	u32 digest_size;	/* Number of bytes in digest */
	u8 *digest;
	u8 digest_size;		/* Number of bytes in digest */
	const char *pkey_algo;
	const char *hash_algo;
	const char *encoding;