Skip to content

Dynamic factor keys for crypto4 #581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
romanstrobl opened this issue Jan 9, 2025 · 0 comments
Open

Dynamic factor keys for crypto4 #581

romanstrobl opened this issue Jan 9, 2025 · 0 comments
Assignees

Comments

@romanstrobl
Copy link
Member

romanstrobl commented Jan 9, 2025

Description

Implement changes related to dynamic factor keys for crypto4:

  • password change endpoint /pa/v4/password/change
  • biometry setup endoint /pa/v4/biometry/add
  • biometry remove endpoint /pa/v4/biometry/remove

Acceptance criteria

Dynamic factor keys endpoints are implemented.

Technical specification

Password change

  • /pa/v4/password/change endpoint

    • Signed with "possession_knowledge"
    • E2EE, activation scope, sh1="/pa/password/change"
    • Request body (before encryption):
      {
        "sharedSecretRequest": {
          "algorithm": "EC_P384_ML_L3",
          "ecdhe": "Base64",
          "mlkem": "Base64"
        }
      }
    • Response body (before encryption):
      {
        "sharedSecretResponse": {
          "ecdhe": "Base64",
          "mlkem": "Base64"
        }
      }
    • The result of shared secret calculation is a new factor key stored to knowledge_factor_key_next on the server side.
  • /pa/v4/biometry/add

    • Signed with "possession_knowledge"
    • E2EE, activation scope, sh1="/pa/biometry/add"
    • Request body (before encryption):
      {
        "sharedSecretRequest": {
          "algorithm": "EC_P384_ML_L3",
          "ecdhe": "Base64",
          "mlkem": "Base64"
        }
      }
    • Response body (before encryption):
      {
        "sharedSecretResponse": {
          "ecdhe": "Base64",
          "mlkem": "Base64"
        }
      }
      • The result of shared secret calculation is a new factor key stored to biometric_factor_key_next on the server side.
  • /pa/v4/biometry/remove

    • Signed with "possession"
    • Request body
      {}
    • Response body
      {}

QA specification

Tested by end-to-end tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant