Add debug logging to keyhierarchy

This commit is contained in:
Bernd Schoolmann 2024-04-05 08:06:17 +02:00
parent 24f6907c0d
commit f53a9a13ac
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -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