Upcoming changes to crypto support

  • 10 Replies
  • 172 Views
*

ron

  • Administrator
  • Guru
  • *****
  • 3,243
Upcoming changes to crypto support
« on: April 18, 2017, 07:17:39 »
The cryptographic functionality is being upgraded for the next release (17.04).  Among the additions/changes:
  • Support for CFB, ECB, CBC modes (as well as GCM and CTR as at present) for symmetric block ciphers
  • Merge of 'cr:encrypt-ctr' etc. into the >encrypt words (the -ctr words will be deprecated)
  • Addition of "ChaCha20" and "ChaCha20Poly1305" stream ciphers
  • Addition of Curve25519 as an option for DH keys
  • Some stack-effect changes for "cr:>encrypt" and "cr:>decrypt"
  • Ability to change key size by simply giving a different sized key
  • Utility words "cr:encrypt" and "cr:decrypt" which give you one-step encrypt or decrypt, if you just need to handle a single string or buffer

I'm also looking into adding Ed25519 signing/verification using the Curve25519 keys.

Any requests while I'm in coding mode?

*

RichAMead

  • beta
  • Guru
  • *****
  • 593
  • "We all live in a big black hole. No, really."
Re: Upcoming changes to crypto support
« Reply #1 on: April 18, 2017, 20:16:33 »
Quantum algorithms?  {grin}   ::)

*

ron

  • Administrator
  • Guru
  • *****
  • 3,243
Re: Upcoming changes to crypto support
« Reply #2 on: April 18, 2017, 20:21:13 »
Yes!  And quantum torpedoes, too!

*

RichAMead

  • beta
  • Guru
  • *****
  • 593
  • "We all live in a big black hole. No, really."
Re: Upcoming changes to crypto support
« Reply #3 on: April 19, 2017, 01:47:03 »
LOL!

*

djouniot

  • beta
  • Journeyman
  • ***
  • 132
Re: Upcoming changes to crypto support
« Reply #4 on: April 19, 2017, 06:11:53 »
Hello Ron,

If you have time : a one word strong implementation of the SSSS algorithm.

(SSSS : Shamirs secret sharing scheme).

Best regards
Dominique

*

ron

  • Administrator
  • Guru
  • *****
  • 3,243
Re: Upcoming changes to crypto support
« Reply #5 on: April 19, 2017, 06:14:13 »
Hi -

That would be a good to add, thanks for suggesting it!

*

djouniot

  • beta
  • Journeyman
  • ***
  • 132
Re: Upcoming changes to crypto support
« Reply #6 on: April 19, 2017, 06:20:38 »
And,if it is not too much but some pkcs (7, 10 and 12).

Best regards

*

ron

  • Administrator
  • Guru
  • *****
  • 3,243
Re: Upcoming changes to crypto support
« Reply #7 on: April 19, 2017, 06:21:23 »
Well, I guess I did ask for suggestions ...  ;)

*

ron

  • Administrator
  • Guru
  • *****
  • 3,243
Re: Upcoming changes to crypto support
« Reply #8 on: April 24, 2017, 17:33:32 »
Added 'SSSS' in two words: 'cr:shard' and 'cr:unshard'.  The secret is sharded into K pieces, any N of which may be used to restore the secret.  K is up to 256, N must be between 2 and K.

*

djouniot

  • beta
  • Journeyman
  • ***
  • 132
Re: Upcoming changes to crypto support
« Reply #9 on: April 24, 2017, 19:48:49 »
Thank you Ron. Good thing

*

ron

  • Administrator
  • Guru
  • *****
  • 3,243
Re: Upcoming changes to crypto support
« Reply #10 on: Yesterday at 07:26:55 »
17.04 is going to be released this week.  The list of changes is quite long and, I hope, useful to many users.

Please bear with me while I continue the development and testing.