Add debug logging to keyhierarchy
This commit is contained in:
parent
24f6907c0d
commit
f53a9a13ac
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ func InitKeyringFromMasterKey(keyring *Keyring, accountKey EncString, accountPri
|
|||
|
||||
keyring.UnlockWithAccountKey(accountSymmetricKey)
|
||||
|
||||
keyringLog.Info("Decrypting account private key")
|
||||
pkcs8PrivateKey, err := DecryptWith(accountPrivateKey, accountSymmetricKey)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
@ -65,6 +66,7 @@ func InitKeyringFromMasterKey(keyring *Keyring, accountKey EncString, accountPri
|
|||
|
||||
func InitKeyringFromUserSymmetricKey(keyring *Keyring, accountSymmetricKey SymmetricEncryptionKey, accountPrivateKey EncString, orgKeys map[string]string) error {
|
||||
keyring.UnlockWithAccountKey(accountSymmetricKey)
|
||||
keyringLog.Info("Decrypting account private key")
|
||||
pkcs8PrivateKey, err := DecryptWith(accountPrivateKey, accountSymmetricKey)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue