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:
parent
edbf093290
commit
bf3e266929
|
@ -16,6 +16,7 @@ const (
|
||||||
KeyUsageVerify
|
KeyUsageVerify
|
||||||
KeyUsageWrap
|
KeyUsageWrap
|
||||||
KeyUsageUnwrap
|
KeyUsageUnwrap
|
||||||
|
KeyUsageGenerateRandom
|
||||||
)
|
)
|
||||||
|
|
||||||
type ManagedKey interface {
|
type ManagedKey interface {
|
||||||
|
@ -115,5 +116,5 @@ type ManagedKeyRandomSource interface {
|
||||||
ManagedKey
|
ManagedKey
|
||||||
|
|
||||||
// GetRandomBytes returns a number (specified by the count parameter) of random bytes sourced from the target managed key.
|
// 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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue