Add key usage and hmac validation/generation