Encode the root-key in the canonicalized form requested in the spec

When serializing the identity to be sent to the other party, use the
helper method in coset to encode the root key in the requested
canonicalized form as per the spec.

Add a check in validation of Identity to ensure that the root key is
in accordance with the canonical form required by the spec.

Add relevant unit tests.

Bug: 319613231
Test: libauthgraph_boringssl_test
Change-Id: Iee95bad7ad2f7978d6c2b1951480c497cf9cb802
5 files changed
tree: 4a1df62554219f76706efd24c4f8193d44cbb231
  1. boringssl/
  2. core/
  3. derive/
  4. hal/
  5. tests/
  6. wire/
  7. .gitignore
  8. Android.bp
  9. NOTICE
  10. PREUPLOAD.cfg