LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // Package crypto collects common cryptographic constants. | 5 // Package crypto collects common cryptographic constants. |
6 package crypto | 6 package crypto |
7 | 7 |
8 import ( | 8 import ( |
9 "hash" | 9 "hash" |
10 "io" | 10 "io" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 Sign(rand io.Reader, msg []byte, opts SignerOpts) (signature []byte, err
error) | 117 Sign(rand io.Reader, msg []byte, opts SignerOpts) (signature []byte, err
error) |
118 } | 118 } |
119 | 119 |
120 // SignerOpts contains options for signing with a Signer. | 120 // SignerOpts contains options for signing with a Signer. |
121 type SignerOpts interface { | 121 type SignerOpts interface { |
122 // HashFunc returns an identifier for the hash function used to produce | 122 // HashFunc returns an identifier for the hash function used to produce |
123 // the message passed to Signer.Sign, or else zero to indicate that no | 123 // the message passed to Signer.Sign, or else zero to indicate that no |
124 // hashing was done. | 124 // hashing was done. |
125 HashFunc() Hash | 125 HashFunc() Hash |
126 } | 126 } |
LEFT | RIGHT |