DescriptionSwitch //net to the new SPKI and PKCS#8 APIs.
This fixes the new verifier's SPKI parser and gets us closer to losing the
legacy ASN.1 stack. This also rewrites the Android KeygenHandler
implementation. This was tested manually, but to make sure it's good, make
the tests actually parse out the SPKAC structure and verify the signature.
(Everything that implements keygen may freely assume BoringSSL, so we have
CBS and EVP available.)
In doing so, this revealed a bug in our Mac SPKAC code. It was omitting the
NULLs in both SPKI and signatureAlgorithm, and EVP_parse_public_key is
strict about including them, per the MUST in the spec. (I've confirmed that
Safari includes them, so it's just us that messed this up.)
This resolves the last TODO about laxness in VerifySignedDataTest, so we
should now be parsing SPKIs correctly. (Finally...)
BUG=499653, 522228
Committed: https://crrev.com/f43769e980b0948775860095c672d17969c70a19
Cr-Commit-Position: refs/heads/master@{#380774}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : fix Mac #Patch Set 6 : const_cast #
Total comments: 23
Patch Set 7 : tweak keygen_handler_openssl.cc #
Depends on Patchset: Messages
Total messages: 20 (8 generated)
|