Adds managed key usages for MAC generate/verify and RNG. (#18291)

* Adds managed key usages for MAC generate/verify and RNG.

* Remove MAC-related key usages from managed key in favor of sign/verify.

* Remove context from random source managed key interface.
This commit is contained in:
Matt Schultz 2023-01-24 13:25:09 -06:00 committed by GitHub
parent edbf093290
commit bf3e266929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ const (
KeyUsageVerify
KeyUsageWrap
KeyUsageUnwrap
KeyUsageGenerateRandom
)
type ManagedKey interface {
@ -115,5 +116,5 @@ type ManagedKeyRandomSource interface {
ManagedKey
// GetRandomBytes returns a number (specified by the count parameter) of random bytes sourced from the target managed key.
GetRandomBytes(ctx context.Context, count int) ([]byte, error)
GetRandomBytes(count int) ([]byte, error)
}