Title: HTTPS 温故知新(五) —— TLS 中的密钥计算
Open Graph Title: HTTPS 温故知新(五) —— TLS 中的密钥计算
X Title: HTTPS 温故知新(五) —— TLS 中的密钥计算
Open Graph Description: 本篇文章我们来对比对比 TLS 1.2 和 TLS 1.3 中的密钥计算。 一. TLS 1.2 中的密钥 在 TLS 1.2 中,有 3 种密钥:预备主密钥、主密钥和会话密钥(密钥块),这几个密钥都是有联系的。 struct { uint32 gmt_unix_time; opaque random_bytes[28]; } Random; struct { ProtocolVersion client_version; opaque random[46]; } PreMasterSecret; struct { uint8 major; uint8 minor; } ProtocolVersion;
X Description: 本篇文章我们来对比对比 TLS 1.2 和 TLS 1.3 中的密钥计算。 一. TLS 1.2 中的密钥 在 TLS 1.2 中,有 3 种密钥:预备主密钥、主密钥和会话密钥(密钥块),这几个密钥都是有联系的。 struct { uint32 gmt_unix_time; opaque random_bytes[28]; } Random; struct { ProtocolVersion client_version; opaque random[46]; } PreMasterSecret; struct { uint8 major; uint8 minor; } ProtocolVersion;
Opengraph URL: https://halfrost.com/https-key-cipher/
X: @halffrost
Generator: Ghost 5.19
Domain: halfrost.com
{
"@context": "https://schema.org",
"@type": "Article",
"publisher": {
"@type": "Organization",
"name": "Halfrost's Field | 冰霜之地",
"url": "https://halfrost.com/",
"logo": {
"@type": "ImageObject",
"url": "https://img.halfrost.com/2020/07/logo_.png"
}
},
"author": {
"@type": "Person",
"name": "一缕殇流化隐半边冰霜",
"image": {
"@type": "ImageObject",
"url": "https://img.halfrost.com/Blog/ArticleTitleImage/me.jpg",
"width": 640,
"height": 640
},
"url": "https://halfrost.com/author/halfrost/",
"sameAs": [
"https://halfrost.com",
"https://www.facebook.com/halffrost",
"https://twitter.com/halffrost"
]
},
"headline": "HTTPS 温故知新(五) —— TLS 中的密钥计算",
"url": "https://halfrost.com/https-key-cipher/",
"datePublished": "2019-03-10T11:00:00.000Z",
"dateModified": "2026-07-07T04:30:17.000Z",
"image": {
"@type": "ImageObject",
"url": "https://img.halfrost.com/Blog/ArticleTitleImage/121_0.png",
"width": 1920,
"height": 1080
},
"keywords": "Protocol, HTTPS",
"description": "本篇文章我们来对比对比 TLS 1.2 和 TLS 1.3 中的密钥计算。\n\n一. TLS 1.2 中的密钥\n在 TLS 1.2 中,有 3 种密钥:预备主密钥、主密钥和会话密钥(密钥块),这几个密钥都是有联系的。\n\n struct {\n uint32 gmt_unix_time;\n opaque random_bytes[28];\n } Random;\n \n struct {\n ProtocolVersion client_version;\n opaque random[46];\n } PreMasterSecret; \n\n struct {\n uint8 major;\n uint8 minor;\n } ProtocolVersion; \n\n\n对于 RSA 握手协商算法来说,Client 会生成的一个 48 字节的预备主密",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://halfrost.com/"
}
}
| theme-color | #FFFFFF |
| None | ie=edge |
| HandheldFriendly | True |
| referrer | no-referrer-when-downgrade |
| og:site_name | Halfrost's Field | 冰霜之地 |
| og:type | article |
| og:image | https://img.halfrost.com/Blog/ArticleTitleImage/121_0.png |
| article:published_time | 2019-03-10T11:00:00.000Z |
| article:modified_time | 2026-07-07T04:30:17.000Z |
| article:tag | HTTPS |
| article:publisher | https://www.facebook.com/halffrost |
| article:author | https://www.facebook.com/halffrost |
| twitter:card | summary_large_image |
| twitter:url | https://halfrost.com/https-key-cipher/ |
| twitter:image | https://img.halfrost.com/Blog/ArticleTitleImage/121_0.png |
| twitter:label1 | Written by |
| twitter:data1 | 一缕殇流化隐半边冰霜 |
| twitter:label2 | Filed under |
| twitter:data2 | Protocol, HTTPS |
| twitter:creator | @halffrost |
| og:image:width | 1920 |
| og:image:height | 1080 |
Links:
Viewport: width=device-width, initial-scale=1.0 shrink-to-fit=no