Crypto.TPMOperation.Win.WrappedKeyCreation{RSA,ECDSA}.Error UMA records
wrapped key export operation whereas it's supposed to record wrapped key
import (see Crypto.TPMOperation.WrappedKeyCreation{RSA,ECDSA} as an
example).
This CL reworks TPM error histograms around wrapped keys:
- Adds `Crypto.TPMOperation.Win.WrappedKeyCreation.Error` histogram that
records the wrapped key import. This histogram doesn't have an
algorithm suffix since the selected algorithm is unknown until the key
is successfully imported.
- Renames `Crypto.TPMOperation.Win.WrappedKeyCreation{RSA,ECDSA}.Error`
as `Crypto.TPMOperation.Win.WrappedKeyExport{RSA,ECDSA}.Error` to
avoid the confusion with the new histogram above and also other
histograms with the "WrappedKeyCreation" suffix.
OBSOLETE_HISTOGRAM[Crypto.TPMOperation.Win.WrappedKeyCreationECDSA.Error]=Replaced by Crypto.TPMOperation.Win.WrappedKeyExportECDSA.Error
OBSOLETE_HISTOGRAM[Crypto.TPMOperation.Win.WrappedKeyCreationRSA.Error]=Replaced by Crypto.TPMOperation.Win.WrappedKeyExportRSA.Error
Bug: 347025280
Change-Id: Ib165e9849b5799a8152ca2dea2964d73dffa7a12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6167112
Reviewed-by: David Schinazi <dschinazi@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Commit-Queue: Alex Ilin <alexilin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405982}