Skip to content

Commit deab8e3

Browse files
authored
fix a few typos (#359)
1 parent 985ca75 commit deab8e3

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

verifier/src/lib.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,9 @@ struct PkiPathSignatureVerifier<'a> {
319319
}
320320

321321
impl<'a> PkiPathSignatureVerifier<'a> {
322-
/// Create a new `PkiPathSignatureVerifier` with the provided
323-
/// `Certificate` acting as the root / trust anchor. If `None` is
324-
/// provided then the `PkiPath`s verified by this verifier must be self-
325-
/// signed.
322+
/// Create a new `PkiPathSignatureVerifier` permitting any `Certificate`
323+
/// in `roots` to be a root / trust anchor. If `None` is provided then the
324+
/// `PkiPath`s verified by this verifier must be self-signed.
326325
fn new(
327326
roots: Option<&'a [Certificate]>,
328327
) -> Result<Self, PkiPathSignatureVerifierError> {
@@ -418,11 +417,11 @@ pub enum MeasurementSetError {
418417
pub struct MeasurementSet(HashSet<Measurement>);
419418

420419
/// Construct a MeasurementSet from the provided artifacts. The
421-
/// trustwirthiness of these artifacts must be established independently
420+
/// trustworthiness of these artifacts must be established independently
422421
/// (see `verify_cert_chain` and `verify_attestation`).
423422
impl MeasurementSet {
424423
/// Construct a MeasurementSet from the provided artifacts. The
425-
/// trustwirthiness of these artifacts must be established independently
424+
/// trustworthiness of these artifacts must be established independently
426425
/// (see `verify_cert_chain` and `verify_attestation`).
427426
pub fn from_artifacts(
428427
pki_path: &PkiPath,
@@ -558,7 +557,10 @@ impl std::fmt::Display for ReferenceMeasurements {
558557
pub enum VerifyAttestationError {
559558
#[error("Failed to hubpack the log: {0}")]
560559
Serialize(#[from] hubpack::error::Error),
561-
#[error("Alias public key is malformed: spki bit string has unused bits")]
560+
#[error(
561+
"Alias public key is malformed: \
562+
spki bit string does not end on octet boundary"
563+
)]
562564
OddKey,
563565
#[error("Failed to construct VerifyingKey from alias public key: {0}")]
564566
KeyConversion(ed25519_dalek::ed25519::Error),

0 commit comments

Comments
 (0)