Skip to content

Commit

Permalink
fix: at_auth revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
murali-shris committed Dec 18, 2024
1 parent f8975b5 commit 7aad63e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/at_auth/lib/src/at_auth_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class AtAuthImpl implements AtAuth {
if (atAuthRequest.atKeysFilePath != null) {
atAuthKeys = await _prepareAtAuthKeysFromFilePath(atAuthRequest);
} else if (atAuthRequest.encryptedKeysMap != null) {
atAuthKeys = await _decryptAtKeysWithSelfEncKey(
atAuthKeys = _decryptAtKeysWithSelfEncKey(
atAuthRequest.encryptedKeysMap!, PkamAuthMode.keysFile);
} else {
atAuthKeys = atAuthRequest.atAuthKeys;
Expand Down
4 changes: 2 additions & 2 deletions packages/at_auth/lib/src/enroll/at_enrollment_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ class AtEnrollmentImpl implements AtEnrollmentBase {
EncryptionKeyType.aes256,
keyName: 'apkamSymmetricKey',
iv: AtChopsUtil.generateIVLegacy())
?.result;
.result;

// Fetch the selfEncryptionKey from the atChops and encrypt with APKAM Symmetric key.
String encryptedDefaultSelfEncryptionKey = atLookUp.atChops
?.encryptString(atLookUp.atChops!.atChopsKeys.selfEncryptionKey!.key,
EncryptionKeyType.aes256,
keyName: 'apkamSymmetricKey', iv: AtChopsUtil.generateIVLegacy())
?.result;
.result;

String command = 'enroll:approve:${jsonEncode({
'enrollmentId': enrollmentRequestDecision.enrollmentId,
Expand Down

0 comments on commit 7aad63e

Please sign in to comment.