github.com/zmap/zcrypto@v0.0.0-20240512203510-0fef58d9a9db/verifier/doc.go (about)

     1  /*
     2   * ZCrypto Copyright 2017 Regents of the University of Michigan
     3   *
     4   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
     5   * use this file except in compliance with the License. You may obtain a copy
     6   * of the License at http://www.apache.org/licenses/LICENSE-2.0
     7   *
     8   * Unless required by applicable law or agreed to in writing, software
     9   * distributed under the License is distributed on an "AS IS" BASIS,
    10   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    11   * implied. See the License for the specific language governing
    12   * permissions and limitations under the License.
    13   */
    14  
    15  // Package verifier performs detailed certificate validation mimicking the
    16  // behavior of popular browsers and root stores.
    17  //
    18  // It includes a Graph structure than can be used to model the PKI. It
    19  // implements a multigraph in which edges are certificates, and nodes are
    20  // (spki, subject) tuples. The head/source of the edge is the issuer, and the
    21  // tail/destination is the subject. Verifiers walk this graph to perform
    22  // certificate validation.
    23  
    24  package verifier