Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/kas_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (k *KASClient) makeRewrapRequest(ctx context.Context, keyAccess KeyAccess,
func (k *KASClient) unwrap(ctx context.Context, keyAccess KeyAccess, policy string) ([]byte, error) {
response, err := k.makeRewrapRequest(ctx, keyAccess, policy)
if err != nil {
return nil, fmt.Errorf("error making request to kas: %w", err)
return nil, fmt.Errorf("error making rewrap request to kas: %w", err)
}

key, err := k.asymDecryption.Decrypt(response.GetEntityWrappedKey())
Expand Down Expand Up @@ -198,7 +198,7 @@ func (k *KASClient) unwrapNanoTDF(ctx context.Context, header string, kasURL str

response, err := k.makeNanoTDFRewrapRequest(ctx, header, kasURL, publicKeyAsPem)
if err != nil {
return nil, fmt.Errorf("error making request to kas: %w", err)
return nil, fmt.Errorf("error making nano rewrap request to kas: %w", err)
}

sessionKey, err := ocrypto.ComputeECDHKey([]byte(privateKeyAsPem), []byte(response.GetSessionPublicKey()))
Expand Down
Loading