Documentation ¶
Overview ¶
Package util contains utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreUsagesValid ¶
func AreUsagesValid(allowed []webcrypto.KeyUsage, actual []webcrypto.KeyUsage) error
AreUsagesValid will check if the usages provided exist in the usages allowed.
func GetHash ¶
GetHash will return a new hasher or error if the hash is unknown. Valid hash types are SHA-1, SHA-256, SHA-384 and SHA-512.
func NotNilOrPanic ¶
func UsageIntersection ¶
func UsageIntersection(v1 []webcrypto.KeyUsage, v2 []webcrypto.KeyUsage) []webcrypto.KeyUsage
UsageIntersection returns the intersection of v1 and v2 values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.