(ctx context.Context)
| 150 | } |
| 151 | |
| 152 | func (c *cache) EncryptingKey(ctx context.Context) (string, interface{}, error) { |
| 153 | if !isEncryptionKeyFeature(c.feature) { |
| 154 | return "", nil, ErrInvalidFeature |
| 155 | } |
| 156 | |
| 157 | //nolint:gocritic // cache can only read crypto keys. |
| 158 | ctx = dbauthz.AsKeyReader(ctx) |
| 159 | return c.cryptoKey(ctx, latestSequence) |
| 160 | } |
| 161 | |
| 162 | func (c *cache) DecryptingKey(ctx context.Context, id string) (interface{}, error) { |
| 163 | if !isEncryptionKeyFeature(c.feature) { |
nothing calls this directly
no test coverage detected