Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 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 ssh | 5 package ssh |
6 | 6 |
7 import ( | 7 import ( |
8 "crypto/dsa" | 8 "crypto/dsa" |
9 "crypto/ecdsa" | 9 "crypto/ecdsa" |
10 "crypto/rsa" | 10 "crypto/rsa" |
11 "time" | 11 "time" |
12 ) | 12 ) |
13 | 13 |
14 // These constants from [PROTOCOL.certkeys] represent the algorithm names | 14 // These constants from [PROTOCOL.certkeys] represent the algorithm names |
15 // for certificate types supported in this package. | 15 // for certificate types supported by this package. |
dave_cheney.net
2012/12/15 05:03:32
s/in/by/ ?
jmpittman
2012/12/16 03:55:49
Done.
| |
16 const ( | 16 const ( |
17 CertAlgoRSAv01 = "ssh-rsa-cert-v01@openssh.com" | 17 CertAlgoRSAv01 = "ssh-rsa-cert-v01@openssh.com" |
18 CertAlgoDSAv01 = "ssh-dss-cert-v01@openssh.com" | 18 CertAlgoDSAv01 = "ssh-dss-cert-v01@openssh.com" |
19 CertAlgoECDSA256v01 = "ecdsa-sha2-nistp256-cert-v01@openssh.com" | 19 CertAlgoECDSA256v01 = "ecdsa-sha2-nistp256-cert-v01@openssh.com" |
20 CertAlgoECDSA384v01 = "ecdsa-sha2-nistp384-cert-v01@openssh.com" | 20 CertAlgoECDSA384v01 = "ecdsa-sha2-nistp384-cert-v01@openssh.com" |
21 CertAlgoECDSA521v01 = "ecdsa-sha2-nistp521-cert-v01@openssh.com" | 21 CertAlgoECDSA521v01 = "ecdsa-sha2-nistp521-cert-v01@openssh.com" |
22 ) | 22 ) |
23 | 23 |
24 // Certificate types are used to specify whether a certificate is for identifica tion | 24 // Certificate types are used to specify whether a certificate is for identifica tion |
25 // of a user or a host. Current identities are defined in [PROTOCOL.certkeys]. | 25 // of a user or a host. Current identities are defined in [PROTOCOL.certkeys]. |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
303 return | 303 return |
304 } | 304 } |
305 sig.Format = string(format) | 305 sig.Format = string(format) |
306 | 306 |
307 if sig.Blob, sigBytes, ok = parseString(sigBytes); !ok { | 307 if sig.Blob, sigBytes, ok = parseString(sigBytes); !ok { |
308 return | 308 return |
309 } | 309 } |
310 | 310 |
311 return sig, rest, ok | 311 return sig, rest, ok |
312 } | 312 } |
LEFT | RIGHT |