Required to encode the data returned from a U2F authenticator.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/6efcf495521d18d060027762f48bb292d6979136 commit 6efcf495521d18d060027762f48bb292d6979136 Author: Kim Paulhamus <kpaulhamus@chromium.org> Date: Thu Sep 14 22:46:27 2017 Implement a basic CBOR encoder. CBOR encoding is defined by the spec: https://tools.ietf.org/html/rfc7049 This implementation supports definite-length encoding for the following major types: 0 (unsigned int) 2 (byte string) 3 (text string) 4 (array) 5 (map) Bug: 752690 Change-Id: Id0d475d0d6706018c74470aff1010c0c54e4f3d3 Reviewed-on: https://chromium-review.googlesource.com/602866 Commit-Queue: Kim Paulhamus <kpaulhamus@chromium.org> Reviewed-by: Balazs Engedy <engedy@chromium.org> Reviewed-by: Jochen Eisinger <jochen@chromium.org> Reviewed-by: Chris Palmer <palmer@chromium.org> Reviewed-by: Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by: Jeffrey Yasskin <jyasskin@chromium.org> Cr-Commit-Position: refs/heads/master@{#502060} [modify] https://crrev.com/6efcf495521d18d060027762f48bb292d6979136/content/browser/BUILD.gn [add] https://crrev.com/6efcf495521d18d060027762f48bb292d6979136/content/browser/webauth/cbor/cbor_values.cc [add] https://crrev.com/6efcf495521d18d060027762f48bb292d6979136/content/browser/webauth/cbor/cbor_values.h [add] https://crrev.com/6efcf495521d18d060027762f48bb292d6979136/content/browser/webauth/cbor/cbor_values_unittest.cc [add] https://crrev.com/6efcf495521d18d060027762f48bb292d6979136/content/browser/webauth/cbor/cbor_writer.cc [add] https://crrev.com/6efcf495521d18d060027762f48bb292d6979136/content/browser/webauth/cbor/cbor_writer.h [add] https://crrev.com/6efcf495521d18d060027762f48bb292d6979136/content/browser/webauth/cbor/cbor_writer_unittest.cc [modify] https://crrev.com/6efcf495521d18d060027762f48bb292d6979136/content/test/BUILD.gn
Comment 1 by kpaulhamus@chromium.org
, Aug 4 2017