Skip to content
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

AtChops.SelfEncryptionKey in AtChops is not being set #1294

Closed
sitaram-kalluri opened this issue Apr 11, 2024 · 1 comment · Fixed by #1299
Closed

AtChops.SelfEncryptionKey in AtChops is not being set #1294

sitaram-kalluri opened this issue Apr 11, 2024 · 1 comment · Fixed by #1299
Assignees

Comments

@sitaram-kalluri
Copy link
Member

  • In AtClientMobile->AtClientService.dart, the "createAtChops" method creates the instance of AtChops on authentication of an atSign. Only the RSA Key-Pairs are set and SelfEncryptionKey is not set.
  • Attaching the code snippet:
AtChops createAtChops(Map<String, String> decryptedAtKeys) {
    final atEncryptionKeyPair = AtEncryptionKeyPair.create(
        decryptedAtKeys[BackupKeyConstants.ENCRYPTION_PUBLIC_KEY_FROM_FILE]!,
        decryptedAtKeys[BackupKeyConstants.ENCRYPTION_PRIVATE_KEY_FROM_FILE]!);
    final atPkamKeyPair = AtPkamKeyPair.create(
        decryptedAtKeys[BackupKeyConstants.PKAM_PUBLIC_KEY_FROM_KEY_FILE]!,
        decryptedAtKeys[BackupKeyConstants.PKAM_PRIVATE_KEY_FROM_KEY_FILE]!);
    final atChopsKeys = AtChopsKeys.create(atEncryptionKeyPair, atPkamKeyPair);
    final atChops = AtChopsImpl(atChopsKeys);
    return atChops;
  }

Excepted Result: Set the SelfEncryptionKey in AtChops Instance.

@sitaram-kalluri
Copy link
Member Author

The issue is fixed and changes are merged to trunk branch.

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

Successfully merging a pull request may close this issue.

1 participant