View Source DocuSign.Webhook.Crypto (DocuSign v1.2.0)

Crypto functions for DocuSign HMAC signature validation.

Summary

Functions

Sign payload with HMAC-SHA256 key.

Types

@type hmac256_key() :: binary()
@type request_body() :: binary()
@type signature() :: binary()

Functions

Link to this function

sign(payload, hmac256_key)

View Source
@spec sign(request_body(), hmac256_key()) :: signature()

Sign payload with HMAC-SHA256 key.

Link to this function

verify_hmac(hmac256_key, request_body, signature)

View Source
@spec verify_hmac(hmac256_key(), request_body(), signature()) :: boolean()

Verify HMAC-SHA256 signature.