Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
TLS 1.3自作入門 / tls13
Search
Mako
August 09, 2021
Technology
1.3k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TLS 1.3自作入門 / tls13
seccamp2019 LT大会での発表内容
Mako
August 09, 2021
More Decks by Mako
See All by Mako
マイナンバーカードの暗号技術とセキュリティ
tex2e
2
3.3k
SELinuxで堅牢化する / selinux
tex2e
3
1.9k
プロトコルの形式的安全性検証ツールProVerif / proverif
tex2e
0
1.5k
マイナンバーカードで署名する / mynumbercard
tex2e
2
3.6k
Other Decks in Technology
See All in Technology
Claude for Google Workspaces ポン出し/claude-for-google-workspace-slide-conversion
emiki
0
13k
渡米前の準備を制す!re:Invent 2026徹底準備術 / The Ultimate Preparation Guide for re:Invent 2026
yuj1osm
1
440
AX時代の自治体支援リソース再配分と役割分担の再構成:戦略とロードマップ(概要)
sishi2026
0
120
re:Inventで、人生は変わったのか? / growth-builders-hub-1-reinvent-2026
mhrtech
2
160
Lint の層を組み直した話
bengo4com
2
240
Technical Project Manager の役割とやりがい、少しだけ AI
yoshiiryo1
0
280
(swiftc) NonCopyableとライフタイム修飾子
teamhimeh
0
160
推論基盤と Scale-Up Interconnect の現状と制約から俯瞰する技術動向
markunet
2
650
国際カードブランドルール変更に伴うクレジットカード決済取引仕様変更について
k1style
0
270
バイブコーディングの特徴と「コケて直す」ループ
happysamurai294
0
130
1週間、Opus封印でお願いします
kintotechdev
0
390
Draft AIエージェントの トークン消費を最小化する 8つの原則
kinopeee
6
1.9k
Featured
See All Featured
Odyssey Design
rkendrick25
PRO
2
900
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
730
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
660
GraphQLとの向き合い方2022年版
quramy
50
15k
Building the Perfect Custom Keyboard
takai
2
930
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
470
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
540
Building AI with AI
inesmontani
PRO
1
1.3k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
960
Transcript
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ NͰͰ͖Δ! TLS 1.3ࣗ࡞ೖ @tex2e ηΩϡϦςΟɾΩϟϯϓશࠃେձ 2019 LT େձ
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ ࠓͷ͓ TLS 1.3
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ TLSͱ ௨৴͢Δ 2 ਓ͜Ε·Ͱʹձͬͨ͜ͱ͕ͳ͘ɺ ҆શͰͳ͍௨৴࿏Λͬͨͱͯ͠ɺ ҆શʹΓͱΓ͕Ͱ͖Δ
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ ҆શͳ௨৴࿏ͱ... • ਅਖ਼ੑ • ௨৴૬ख͕ຊͰ͋Δ͜ͱΛ֬ೝͰ͖Δ • (αʔόূ໌ॻʹΑΔೝূ ... X.509 Cert, PKI) • ػີੑ • ݖݶΛ࣋ͭਓ͚͕ͩΞΫηεͰ͖Δ • (௨৴༰ͷ҉߸Խ ... AES, ChaCha20) • શੑ • վ͟Μ͞Εͳ͍ • (ೝূ͖҉߸ʹΑΔվ͟Μݕ ... AEAD)
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ TLSͷϋϯυγΣΠΫ • Handshake • Ͳͷ҉߸εΠʔτΛ͏͔ܾΊΔ • ެ։ݤ҉߸Λ༻͍ͯݤڞ༗͢Δ • ূ໌ॻΛͬͯೝূ͢Δ • Application Data • ڞ௨ݤ҉߸Λ༻͍ͯ҉߸Խ͢Δ • HTTP Λ҉߸Խͨ͠σʔλͳͲ Open Socket Handshake Application Data Close Socket
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ TLS 1.3ͷΓͱΓ Client Server Client Hello Server Hello Application Data
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ ϓϩάϥϚͷ3େʮᅂΈʯ • ࣗ࡞ OS • ࣗ࡞ίϯύΠϥ (ϓϩάϥϛϯάݴޠ) • ࣗ࡞ϓϩτίϧελοΫ (TCP/IP, TLS) ˞ॾઆ͋Γ
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ TLSͲ͏ͬͯ࡞Δͷ? RFCΛಡΉ
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ TLS 1.3 (RFC 8446)
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ ߏମͱόΠτྻͷ૬ޓม ม ෮ݩ
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ ࣮ͷྲྀΕ TLS ͷΓͱΓͷ࣮ɿ 1. ιέοτ௨৴ 2. ϝοηʔδͷߏମͱόΠτྻͷ૬ޓม TLS ͷΓͱΓͷதͷ࣮ɿ 1. ପԁۂઢ Diffie-Hellman ݤڞ༗ 2. HKDF ʹΑΔݤεέδϡʔϦϯά 3. ೝূ͖҉߸ (AEAD) 4. X.509 ূ໌ॻ
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ TLS 1.3ͷ࠷৽ಈ (Server/Client)
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ TLS 1.3ͷ࠷৽ಈ (QUIC) UDP ͰίωΫγϣϯཱ֬ͱ TLS 1.3 ཱ֬Λಉ࣌ʹߦ͏ TCP + TLS 1.3 Client Server SYN SYN + ACK ACK Client Hello Server Hello Application Data QUIC (HTTP/3) Client Server QUIC QUIC QUIC Application Data
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ TLS 1.3ࣗ࡞ָ͍͚͠Ͳ͍͠ • จॻ΄ͱΜͲӳޠ • ҉߸ٕज़ͷج൫ͱͳΔֶͷࣝ • ωοτϫʔΫٕज़ͷࣝ • RFC ೖॻͰͳ͍ͷͰॳֶऀʹݫ͍͠
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ 30Ͱ TLS 1.3 ࡞Εͳ͍Α
༧උࣝ ࣮ ࠷৽ಈ ·ͱΊ ͓ΘΓ
ࢀߟจݙ I RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3. IETF, August 2018. Andy Brodie: Overview of TLS v1.3. OWASP, 2017. URL https://www.owasp.org/images/d/d3/TLS_v1.3_ Overview_OWASP_Final.pdf SSL Labs: SSL Pulse. Qualys, Inc, June 2019. URL https://www.ssllabs.com/ssl-pulse/ @Fyrd, @Lensco: Can I use... URL https://caniuse.com/ IETF Draft: “QUIC: A UDP-Based Multiplexed and Secure Transport”. URL https://tools.ietf.org/ html/draft-ietf-quic-transport-22
ࢀߟจݙ II Alessandro Ghedini: The Road to QUIC. Cloudflare, Inc, 2018. URL https://blog.cloudflare.com/the-road-to-quic/ խ ࢁຊ: TCP/IP ϓϩτίϧελοΫࣗ࡞ೖ. KLab Inc, 2018. URL https://www.slideshare.net/ pandax381/tcpip-105857327 Ivan Risti´ c ஶ, ᜊ౻ಓ ༁: ϓϩϑΣογϣφϧ SSL/TLS. ϥϜμϊʔτ, 2018.