Skip to content

Commit 039c60e

Browse files
clarity
1 parent c828aa5 commit 039c60e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

service/internal/security/basic_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const (
2626
ristrettoCacheTTL = 30
2727
)
2828

29-
// BasicManager is a simple implements the SecurityProvider for wrapped keys stored internally (provider mode).
29+
// BasicManager is implements the SecurityProvider for wrapped keys stored internally (provider mode).
3030
type BasicManager struct {
3131
l *logger.Logger
3232
rootKey []byte

service/internal/security/in_process_provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (a *InProcessProvider) FindKeyByID(_ context.Context, id trust.KeyIdentifie
159159
if k, err := a.cryptoProvider.RSAPublicKey(string(id)); err == nil {
160160
e, err := ocrypto.FromPublicPEM(k)
161161
if err != nil {
162-
return nil, fmt.Errorf("failed to create asym encryption from rsa public key: %w", err)
162+
return nil, fmt.Errorf("failed to parse rsa public key while scanning for [%s]: %w", id, err)
163163
}
164164
return &KeyDetailsAdapter{
165165
id: id,
@@ -171,7 +171,7 @@ func (a *InProcessProvider) FindKeyByID(_ context.Context, id trust.KeyIdentifie
171171
if k, err := a.cryptoProvider.ECPublicKey(string(id)); err == nil {
172172
e, err := ocrypto.FromPublicPEM(k)
173173
if err != nil {
174-
return nil, fmt.Errorf("failed to create asym encryption from ec public key: %w", err)
174+
return nil, fmt.Errorf("failed to parse ec public key while scanning for [%s]: %w", id, err)
175175
}
176176
return &KeyDetailsAdapter{
177177
id: id,

0 commit comments

Comments
 (0)