From: Bagas Sanjaya <bagasdotme@xxxxxxxxx>
Date: Mon, 1 Jul 2024 16:07:48 +0700
On Sun, Jun 30, 2024 at 05:27:24PM +0200, David Polakovic wrote:IRRC there is big integer type somewhere in either lib/ or crypto/,
Thanks for reply.Please don't top-post on LKML, reply inline with appropriate context
instead.
My proposed solution was to create this BigInt datatype, which
stores the value in array. The functions for division, multiplication,
addition, subtraction and comparison could be stored in separate
".h" library for manipulation with BigInt datatype. The paper speaks
more in detail.
I don't remember exactly. It's used only for crypto tho.
I have generic 128-bit integer API/infra for the kernel in my internalAnd yes, this truly is an userspace solution, but for kernel spaceThere was a proposal for adding 128-bit unsigned integer (see [1]).
implementation I have zero to none experience. Therefore I wrote
here.
The signed counterpart should be analogous.
repo. I've been planning to upstream it for a couple years already, but
every time couldn't find a slot to do that.
I can upload it to my open GitHub, so that maybe someone else who needs
it could pick it up?
Thanks.Thanks,
[1]: https://lore.kernel.org/lkml/20220722145514.767592-1-alexandr.lobakin@xxxxxxxxx/
Olek