Skip to content

Crypto: add an optional entropy to ec_encrypt to achieve idempotency#1528

Open
bchamagne wants to merge 2 commits intoarchethic-foundation:developfrom
bchamagne:1525-determinist-ec-encrypt
Open

Crypto: add an optional entropy to ec_encrypt to achieve idempotency#1528
bchamagne wants to merge 2 commits intoarchethic-foundation:developfrom
bchamagne:1525-determinist-ec-encrypt

Conversation

@bchamagne
Copy link
Contributor

@bchamagne bchamagne commented Jun 6, 2024

Description

By giving a entropy to the ec_encrypt, the function always return the same value for the same inputs.
We'll need this in #1525.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

unit tests

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@bchamagne bchamagne added feature New feature request crypto Involve cryptography labels Jun 6, 2024
@bchamagne bchamagne requested a review from samuelmanzanera June 6, 2024 15:56
@bchamagne bchamagne force-pushed the 1525-determinist-ec-encrypt branch from 8e77c78 to 4a3d5f6 Compare June 6, 2024 16:00
@bchamagne bchamagne changed the title Crypto: add an optional seed to ec_encrypt to achieve idempotency Crypto: add an optional entropy to ec_encrypt to achieve idempotency Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crypto Involve cryptography feature New feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants