| 1 | // |
| 2 | // Copyright 2021 The Sigstore Authors. |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | |
| 16 | package signaturescip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/ |
| 17 | |
| 18 | import ( |
| 19 | "contextscip-go gomod github.com/golang/go/src go1.25.0 context/" |
| 20 | "cryptoscip-go gomod github.com/golang/go/src go1.25.0 crypto/" |
| 21 | "crypto/rsascip-go gomod github.com/golang/go/src go1.25.0 `crypto/rsa`/" |
| 22 | "ioscip-go gomod github.com/golang/go/src go1.25.0 io/" |
| 23 | |
| 24 | "github.com/sigstore/sigstore/pkg/signature/optionsscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature/options`/" |
| 25 | ) |
| 26 | |
| 27 | // RPCOption specifies options to be used when performing RPC |
| 28 | type RPCOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/RPCOption# interface { |
| 29 | ApplyContextscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/RPCOption#ApplyContext.(*contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#) |
| 30 | ApplyRemoteVerificationscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/RPCOption#ApplyRemoteVerification.(*bool) |
| 31 | ApplyRPCAuthOptsscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/RPCOption#ApplyRPCAuthOpts.(opts *optionsscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature/options`/.RPCAuthscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature/options`/RPCAuth#) |
| 32 | ApplyKeyVersionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/RPCOption#ApplyKeyVersion.(keyVersion *string) |
| 33 | } |
| 34 | |
| 35 | // PublicKeyOption specifies options to be used when obtaining a public key |
| 36 | type PublicKeyOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/PublicKeyOption# interface { |
| 37 | RPCOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/RPCOption# |
| 38 | } |
| 39 | |
| 40 | // MessageOption specifies options to be used when processing messages during signing or verification |
| 41 | type MessageOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/MessageOption# interface { |
| 42 | ApplyDigestscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/MessageOption#ApplyDigest.(*[]byte) |
| 43 | ApplyCryptoSignerOptsscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/MessageOption#ApplyCryptoSignerOpts.(*cryptoscip-go gomod github.com/golang/go/src go1.25.0 crypto/.SignerOptsscip-go gomod github.com/golang/go/src go1.25.0 crypto/SignerOpts#) |
| 44 | } |
| 45 | |
| 46 | // SignOption specifies options to be used when signing a message |
| 47 | type SignOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/SignOption# interface { |
| 48 | RPCOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/RPCOption# |
| 49 | MessageOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/MessageOption# |
| 50 | ApplyRandscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/SignOption#ApplyRand.(*ioscip-go gomod github.com/golang/go/src go1.25.0 io/.Readerscip-go gomod github.com/golang/go/src go1.25.0 io/Reader#) |
| 51 | ApplyKeyVersionUsedscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/SignOption#ApplyKeyVersionUsed.(**string) |
| 52 | } |
| 53 | |
| 54 | // VerifyOption specifies options to be used when verifying a signature |
| 55 | type VerifyOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/VerifyOption# interface { |
| 56 | RPCOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/RPCOption# |
| 57 | MessageOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/MessageOption# |
| 58 | } |
| 59 | |
| 60 | // LoadOption specifies options to be used when creating a Signer/Verifier |
| 61 | type LoadOptionscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/LoadOption# interface { |
| 62 | ApplyHashscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/LoadOption#ApplyHash.(*cryptoscip-go gomod github.com/golang/go/src go1.25.0 crypto/.Hashscip-go gomod github.com/golang/go/src go1.25.0 crypto/Hash#) |
| 63 | ApplyED25519phscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/LoadOption#ApplyED25519ph.(*bool) |
| 64 | ApplyRSAPSSscip-go gomod github.com/sigstore/sigstore . `github.com/sigstore/sigstore/pkg/signature`/LoadOption#ApplyRSAPSS.(**rsascip-go gomod github.com/golang/go/src go1.25.0 `crypto/rsa`/.PSSOptionsscip-go gomod github.com/golang/go/src go1.25.0 `crypto/rsa`/PSSOptions#) |
| 65 | } |