verify_envelope
Verifies AE-128 envelope integrity using a constant-time HMAC-SHA256 over the full 128-byte frame with the attestation field zeroed, and optionally checks the lease. Detects any tampered byte and rejects fail-closed.
Instructions
Full AE-128 verification (companion draft sec. 4): constant-time HMAC-SHA256 over the whole 128-byte frame with the attestation field zeroed, plus the optional lease check. organ_key is the organ's shared test/deployment key (this server is stateless and stores nothing). REJECT is a result, not an error: a flipped byte anywhere breaks the MAC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | No | ||
| organ_key | Yes | ||
| check_lease | No | ||
| envelope_hex | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |