Skip to content

Commit

Permalink
update secret decryption to use group key methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli Fabens committed May 14, 2021
1 parent ecd7b1f commit a5e4cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,7 @@ func (c *ToznySDKV3) DecryptTextSecret(ctx context.Context, secret *pdsClient.Li
Data: secret.Data,
RecordSignature: secret.RecordSignature,
}
decryptedRecord, err := c.E3dbPDSClient.DecryptRecord(ctx, encryptedRecord)
decryptedRecord, err := c.E3dbPDSClient.DecryptGroupRecordWithGroupEncryptedAccessKey(ctx, encryptedRecord, secret.AccessKey)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit a5e4cf2

Please sign in to comment.