Recent

Author Topic: Anyone interested in testing a new Big Integer library?  (Read 22648 times)

delphius

  • Jr. Member
  • **
  • Posts: 77
Re: Anyone interested in testing a new Big Integer library?
« Reply #15 on: November 11, 2023, 05:51:58 pm »
... to work with cryptoprimitives...
Are you working on cryptocurrency or cryptography?

Cryptography, testing native implementation methods on pure pascal

But there and there, among other things, overlapping principles and primitives are used

Can you tell me where I can find this?

Here is the full list

This is the native Big Integer lib link

until I can figure out how to create subfolders

You just need to create new file and just type in full path you want for it, for example "root/folder/subfolder/file.pas", and github create for you "/folder/subfolder/" folders with file.pas in it. That's it :)

This is done in order so that there are no empty folders in the repositories, so you can`t see 'folder' content, until you put a file in it.
« Last Edit: November 11, 2023, 06:31:05 pm by delphius »
fpmtls - ssl/tls 1.3 implementation in pure pascal
fpmailsend - sending a simple email message
pascal-webui - use web browser as gui and fpc as backend

delphius

  • Jr. Member
  • **
  • Posts: 77
Re: Anyone interested in testing a new Big Integer library?
« Reply #16 on: November 11, 2023, 06:00:10 pm »
...the built-in fpc library for working with large numbers...
Can you tell me where I can find this?
Thanks.

AFAIK we don't have one?

Bart

We do have it!)
fpmtls - ssl/tls 1.3 implementation in pure pascal
fpmailsend - sending a simple email message
pascal-webui - use web browser as gui and fpc as backend

Bart

  • Hero Member
  • *****
  • Posts: 5497
    • Bart en Mariska's Webstek
Re: Anyone interested in testing a new Big Integer library?
« Reply #17 on: November 11, 2023, 06:30:16 pm »
...the built-in fpc library for working with large numbers...
Can you tell me where I can find this?
Thanks.

AFAIK we don't have one?

Bart

We do have it!)

Which fpc unit implements a big integer library then?
(I have one which supports up to 2 gigabyte digits.)

Bart

delphius

  • Jr. Member
  • **
  • Posts: 77
Re: Anyone interested in testing a new Big Integer library?
« Reply #18 on: November 11, 2023, 06:32:19 pm »
...the built-in fpc library for working with large numbers...
Can you tell me where I can find this?
Thanks.

AFAIK we don't have one?

Bart

We do have it!)

Which fpc unit implements a big integer library then?
(I have one which supports up to 2 gigabyte digits.)

Bart

https://gitlab.com/freepascal.org/fpc/source/-/blob/main/packages/fcl-hash/src/fptlsbigint.pas

I`ve checked it while implement poly1305 cryptoprimitive big int multiplication + mod (17 bytes hex numbers) and it works well
But poly1305 design have tricks, which helps not to have deal with bigints, so it was just for test (rather, you still have to deal with large numbers, but the implementation is easier and faster than using a full third-party library)
« Last Edit: November 11, 2023, 06:42:00 pm by delphius »
fpmtls - ssl/tls 1.3 implementation in pure pascal
fpmailsend - sending a simple email message
pascal-webui - use web browser as gui and fpc as backend

ad1mt

  • Sr. Member
  • ****
  • Posts: 327
    • Mark Taylor's Home Page
Re: Anyone interested in testing a new Big Integer library?
« Reply #19 on: November 12, 2023, 09:23:05 am »
I love the spirit of that statement but in practice, its a problem...  I stamp my code with The-Clear-BSD-License... See https://opensource.org/licenses/
I looked at the link, but couldn't find anything that resembled "Clear BSD License".
So I googled "Clear BSD License", and spent half an hour gettting bewildered by it all.
No disrespect, but I just don't care. If someone else cares, then they're welcome to take the code and copyright it themselves with whichever license they like.
I'd rather spend the time working on a faster Power algorithm.

TRon

  • Hero Member
  • *****
  • Posts: 3822
Re: Anyone interested in testing a new Big Integer library?
« Reply #20 on: November 12, 2023, 09:50:42 am »
No disrespect, but I just don't care. If someone else cares, then they're welcome to take the code and copyright it themselves with whichever license they like.
I fully understand your disgust with licensing and wasting time with it.

However, in practice that means that no-one is able to use your code for other (published) projects because of (possible) legal implications.

That is how 'society' forces you into licensing.

I know, it is crooked  :'(

Seeing your reaction perhaps the WTFPL (or similar licenses) might appeal to you.
I do not have to remember anything anymore thanks to total-recall.

ad1mt

  • Sr. Member
  • ****
  • Posts: 327
    • Mark Taylor's Home Page
Re: Anyone interested in testing a new Big Integer library?
« Reply #21 on: November 12, 2023, 09:57:55 am »
When you are ready, please add your listing to https://wiki.freepascal.org/BigInteger and you may write detailed comparision there.
I have edited the BigInteger wiki page, as requested.
I have not provided any direct comparisons with other libraries, although I have done some comparison speed tests myself (where I have been able to get other library code to compile). However, at present, I inclined not to publish the results, because I prefer not to say things like "my code is faster/better than your code".
On the wiki page, I have stated the design goals/aims of easy to use, reasonably fast, and very portable.
« Last Edit: November 12, 2023, 10:17:58 am by ad1mt »

ad1mt

  • Sr. Member
  • ****
  • Posts: 327
    • Mark Taylor's Home Page
Re: Anyone interested in testing a new Big Integer library?
« Reply #22 on: November 13, 2023, 09:07:44 am »
If anyone has downloaded the library already, please download again.
At 8am today, I uploaded a new version to fix a bug in the power function.

eldonfsr

  • Hero Member
  • *****
  • Posts: 528
Re: Anyone interested in testing a new Big Integer library?
« Reply #23 on: November 13, 2023, 11:03:59 pm »
I am interest to test can you send me information to download....

ad1mt

  • Sr. Member
  • ****
  • Posts: 327
    • Mark Taylor's Home Page
Re: Anyone interested in testing a new Big Integer library?
« Reply #24 on: November 14, 2023, 08:36:52 am »
I uploaded v4.20 at 7:30am today. This has a much faster power function algorithm.
EDIT:- its not quite ready... hopefully later today.
« Last Edit: November 14, 2023, 09:12:22 am by ad1mt »

ad1mt

  • Sr. Member
  • ****
  • Posts: 327
    • Mark Taylor's Home Page
Re: Anyone interested in testing a new Big Integer library?
« Reply #25 on: November 14, 2023, 08:43:16 am »
I'm probably going to take a break from working on this soon, unless someone desperately needs extra functions.
I'm thinking things like bitwise operators like And/Or, or possibly other functions I have not thought of.
« Last Edit: November 14, 2023, 01:13:47 pm by ad1mt »

ad1mt

  • Sr. Member
  • ****
  • Posts: 327
    • Mark Taylor's Home Page
Re: Anyone interested in testing a new Big Integer library?
« Reply #26 on: November 14, 2023, 01:13:11 pm »
The fast power function was more tricky than I anticipated...  :o
... but its finished now.
« Last Edit: November 14, 2023, 03:31:32 pm by ad1mt »

ad1mt

  • Sr. Member
  • ****
  • Posts: 327
    • Mark Taylor's Home Page
Re: Anyone interested in testing a new Big Integer library?
« Reply #27 on: November 17, 2023, 05:15:38 pm »
Are you the same person as Alexey T. on Github?  If so, thanks for your comments.
And if I need to ask questions about the problems you've flagged, can we have a conversation here?
In the past, I've only written Free Pascal programs for my own personal use, and not really distributed them much at all, so your input is valuable to me.
Thanks.

ad1mt

  • Sr. Member
  • ****
  • Posts: 327
    • Mark Taylor's Home Page
Re: Anyone interested in testing a new Big Integer library?
« Reply #28 on: November 19, 2023, 01:02:02 pm »
I am interest to test can you send me information to download....
The download links are in this thread.
Feedback is welcome, especially criticism... thanks.

ad1mt

  • Sr. Member
  • ****
  • Posts: 327
    • Mark Taylor's Home Page
Re: Anyone interested in testing a new Big Integer library?
« Reply #29 on: November 23, 2023, 09:11:03 am »
I made a new version 4.23 available. If you downloaded a previous version please upgrade to this, it has many bug fixes and improvements.

 

TinyPortal © 2005-2018