Skip to content

Miscellaneous SPAKE2+ support APIs#120

Merged
athoelke merged 2 commits intoARM-software:mainfrom
athoelke:pake-spake2p-support
Nov 29, 2023
Merged

Miscellaneous SPAKE2+ support APIs#120
athoelke merged 2 commits intoARM-software:mainfrom
athoelke:pake-spake2p-support

Conversation

@athoelke
Copy link
Copy Markdown
Contributor

@athoelke athoelke commented Nov 3, 2023

For SPAKE2+, we need some additions to the PAKE API (also see #73):

  • An API to add context data during the operation setup
  • A cipher suite attribute for a MAC algorithm (used during key confirmation)
  • A PAKE step for key confirmation

@athoelke athoelke added enhancement New feature or request Crypto API Issue or PR related to the Cryptography API labels Nov 3, 2023
@athoelke athoelke added this to the Crypto API 1.2 PAKE Extension milestone Nov 3, 2023
@athoelke athoelke self-assigned this Nov 3, 2023
@athoelke
Copy link
Copy Markdown
Contributor Author

athoelke commented Nov 3, 2023

Some feedback would be very welcome from @silabs-Kusumit, @silabs-hannes, @oberon-sk, and @yanesca; given your involvement in the PAKE API development.

Note some differences to #73, and other fallout:

@athoelke
Copy link
Copy Markdown
Contributor Author

athoelke commented Nov 3, 2023

Note: the size of the output for SPAKE2+ depends on the primitive (for the key share step), and the MAC (for the confirmation step). It does not require the hash algorithm. However, other PAKE protocols (e.g SRP) do not use a MAC, and use the output of the cipher-suite hash algorithm for the confirmation step.

@athoelke athoelke mentioned this pull request Nov 3, 2023
8 tasks
@silabs-Kusumit
Copy link
Copy Markdown

LGTM

@athoelke
Copy link
Copy Markdown
Contributor Author

Please look at #124 - if this approach looks better than #116, then we can remove the MAC attribute of the cipher suite (commit 6db9942 above), and incorporate that into the SPAKE2+ algorithm identifiers instead.

@silabs-Kusumit
Copy link
Copy Markdown

Please look at #124 - if this approach looks better than #116, then we can remove the MAC attribute of the cipher suite (commit 6db9942 above), and incorporate that into the SPAKE2+ algorithm identifiers instead.

Approach in #124 looks better and output size macros requiring MAC for SPAKE2+ is also resolved. We can remove MAC from the ciphersuite.

@athoelke athoelke force-pushed the pake-spake2p-support branch from 6db9942 to 8f33664 Compare November 29, 2023 18:27
@athoelke
Copy link
Copy Markdown
Contributor Author

Rebased, and removed the unnecessary MAC attribute of the cipher-suite. MAC parameterization of a PAKE cipher-suite will be part of the algorithm identifier.

@athoelke athoelke merged commit e1f0cdc into ARM-software:main Nov 29, 2023
@athoelke athoelke deleted the pake-spake2p-support branch November 29, 2023 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Crypto API Issue or PR related to the Cryptography API enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

2 participants