...

Source file src/github.com/sigstore/rekor/pkg/pki/identity/identity.go

Documentation: github.com/sigstore/rekor/pkg/pki/identity

     1  // Copyright 2023 The Sigstore Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package identity
    16  
    17  type Identity struct {
    18  	// Types include:
    19  	// - *rsa.PublicKey
    20  	// - *ecdsa.PublicKey
    21  	// - ed25519.PublicKey
    22  	// - *x509.Certificate
    23  	// - openpgp.EntityList (golang.org/x/crypto/openpgp)
    24  	// - *minisign.PublicKey (github.com/jedisct1/go-minisign)
    25  	// - ssh.PublicKey (golang.org/x/crypto/ssh)
    26  	Crypto any
    27  	// Raw key or certificate extracted from Crypto. Values include:
    28  	// - PKIX ASN.1 DER-encoded public key
    29  	// - ASN.1 DER-encoded certificate
    30  	Raw []byte
    31  	// For keys, certificates, and minisign, hex-encoded SHA-256 digest
    32  	// of the public key or certificate
    33  	// For SSH and PGP, Fingerprint is the standard for each ecosystem
    34  	// For SSH, unpadded base-64 encoded SHA-256 digest of the key
    35  	// For PGP, hex-encoded SHA-1 digest of a key, which can be either
    36  	// a primary key or subkey
    37  	Fingerprint string
    38  }
    39  

View as plain text