Documentation ¶
Overview ¶
Package verification provides verification utilities.
This is provided as reference to application authors wishing to calculate the exposure key HMAC as part of their exposure notifications mobile app.
This protocol is detailed at https://developers.google.com/android/exposure-notifications/verification-system
Although exported, this package is non intended for general consumption. It is a shared dependency between multiple exposure notifications projects. We cannot guarantee that there won't be breaking changes in the future.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateAllAllowedExposureKeyHMAC ¶ added in v0.3.0
func CalculateAllAllowedExposureKeyHMAC(keys []verifyapi.ExposureKey, secret []byte) ([][]byte, error)
CalculateAllAllowedExposureKeyHMAC calculates the main HMAC and the optional HMAC. The optional HMAC is only valid if the transmission risks are all zero.
func CalculateExposureKeyHMAC ¶
func CalculateExposureKeyHMAC(keys []verifyapi.ExposureKey, secret []byte) ([]byte, error)
CalculateExposureKeyHMAC will calculate the verification protocol HMAC value. Input keys are already to be base64 encoded. They will be sorted if necessary.
Types ¶
This section is empty.