Encapsulate payload state

Encapsulate the payload state and only allow valid payloads to be
constructed. The hashes in the payload must be one of the approved sizes
and the subject and issuer should have some contents.

Test: atest libcert_request_validator_tests
Change-Id: Ic3554853429d5ad936e3ed7949ba6c3f160a9d55
4 files changed
tree: 703f1e956ce4240b326cc095803b1da8760e0fb1
  1. fuzzing/
  2. gdb/
  3. remote_provisioning/
  4. sanitizer-status/
  5. CleanSpec.mk
  6. OWNERS
  7. PREUPLOAD.cfg