CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 23:37:26 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/rpgp/rpgp.git
etag: W/"d1414d212beaa612d6bfeded948a7d7e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=QocUTki66NOu4o3EJXRgfv4dT68K1Ad8hgatZuBJYWRVUJIAYOdrOBOwL11OINe%2BRGwgLgx3WgrWwUjEHjqtmVNbgmLnyiorhu2xUkFvCA7ceCLpjcw8rEfgG5kt5IXM%2F9%2B1u76SMzfWfq9jGIM3%2BVCrV65uHbb7KWIox9FE6wkBlEQ%2Ft9bXmBaPJuD7%2BTlwbRHWnlt%2FmSfZt3S%2BPl59WExbiPdW8yoTLZl0XEdYK%2BmkdR54VTf8e3lBN8Ey5ZUxjh%2FuSOj9BN7DB1yDtnB4Gg%3D%3D--LKfbw524HJML1qjG--gVzGfcEO2R%2B2DG%2BTxfTjpg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1861437079.1753745845; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 23:37:25 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 23:37:25 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A812:E5283:138190:1C2563:688809B5
feat: implement TryFrom<PublicOrSecret> for Signed{Public,Secret}Key · rpgp/rpgp@f9e7694 · GitHub
Copy file name to clipboardExpand all lines: src/composed/signed_key/shared.rs
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit f9e7694
feat: implement TryFrom<PublicOrSecret> for Signed{Public,Secret}Key
This is less dangerous than checking
`is_public()` or `is_secret()`
and then using `into_secret()` and `into_public()`
that may panic.
Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com>1 parent de9dcf1 commit f9e7694Copy full SHA for f9e7694
File tree
Expand file treeCollapse file tree
4 files changed
+49
-13
lines changedFilter options
- src/composed/signed_key
- tests
Expand file treeCollapse file tree
4 files changed
+49
-13
lines changedsrc/composed/signed_key/shared.rs
Copy file name to clipboardExpand all lines: src/composed/signed_key/shared.rs+44-8Lines changed: 44 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
1 | 2 |
| |
2 | 3 |
| |
3 | 4 |
| |
| |||
230 | 231 |
| |
231 | 232 |
| |
232 | 233 |
| |
| 234 | + | |
| 235 | + | |
233 | 236 |
| |
| 237 | + | |
234 | 238 |
| |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
| 239 | + | |
| 240 | + | |
239 | 241 |
| |
240 | 242 |
| |
| 243 | + | |
| 244 | + | |
241 | 245 |
| |
| 246 | + | |
242 | 247 |
| |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - | |
| 248 | + | |
| 249 | + | |
247 | 250 |
| |
248 | 251 |
| |
249 | 252 |
| |
| |||
261 | 264 |
| |
262 | 265 |
| |
263 | 266 |
| |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
264 | 300 |
| |
265 | 301 |
| |
266 | 302 |
| |
|
+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
344 | 344 |
| |
345 | 345 |
| |
346 | 346 |
| |
347 |
| - | |
| 347 | + | |
348 | 348 |
| |
349 | 349 |
| |
350 | 350 |
| |
| |||
470 | 470 |
| |
471 | 471 |
| |
472 | 472 |
| |
473 |
| - | |
| 473 | + | |
474 | 474 |
| |
475 | 475 |
| |
476 | 476 |
| |
|
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1196 | 1196 |
| |
1197 | 1197 |
| |
1198 | 1198 |
| |
1199 |
| - | |
| 1199 | + | |
1200 | 1200 |
| |
1201 | 1201 |
| |
1202 | 1202 |
| |
|
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
| 38 | + | |
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
|
You can’t perform that action at this time.
0 commit comments