mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-02 19:25:51 +00:00
Remove dependency cycle
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
import Aes256Gcm from '@app/components/utilities/cryptography/aes-256-gcm';
|
import Aes256Gcm from '@app/components/utilities/cryptography/aes-256-gcm';
|
||||||
import { deriveArgonKey } from '@app/components/utilities/cryptography/crypto';
|
import { deriveArgonKey } from '@app/components/utilities/cryptography/crypto';
|
||||||
|
|
||||||
import { KeyService } from '../services';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Object} obj
|
* @param {Object} obj
|
||||||
* @param {Number} obj.encryptionVersion
|
* @param {Number} obj.encryptionVersion
|
||||||
@@ -81,7 +79,6 @@ let privateKey;
|
|||||||
throw new Error('Failed to decrypt private key');
|
throw new Error('Failed to decrypt private key');
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyService.setPrivateKey(privateKey);
|
|
||||||
return privateKey;
|
return privateKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user