Add debug logging to keyhierarchy
This commit is contained in:
parent
24f6907c0d
commit
f53a9a13ac
|
@ -49,6 +49,7 @@ func InitKeyringFromMasterKey(keyring *Keyring, accountKey EncString, accountPri
|
||||||
|
|
||||||
keyring.UnlockWithAccountKey(accountSymmetricKey)
|
keyring.UnlockWithAccountKey(accountSymmetricKey)
|
||||||
|
|
||||||
|
keyringLog.Info("Decrypting account private key")
|
||||||
pkcs8PrivateKey, err := DecryptWith(accountPrivateKey, accountSymmetricKey)
|
pkcs8PrivateKey, err := DecryptWith(accountPrivateKey, accountSymmetricKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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 {
|
func InitKeyringFromUserSymmetricKey(keyring *Keyring, accountSymmetricKey SymmetricEncryptionKey, accountPrivateKey EncString, orgKeys map[string]string) error {
|
||||||
keyring.UnlockWithAccountKey(accountSymmetricKey)
|
keyring.UnlockWithAccountKey(accountSymmetricKey)
|
||||||
|
keyringLog.Info("Decrypting account private key")
|
||||||
pkcs8PrivateKey, err := DecryptWith(accountPrivateKey, accountSymmetricKey)
|
pkcs8PrivateKey, err := DecryptWith(accountPrivateKey, accountSymmetricKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue