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
勉強会 #3
Search
titech.crypto
May 27, 2018
240
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
勉強会 #3
ハッシュ関数について①
titech.crypto
May 27, 2018
More Decks by titech.crypto
See All by titech.crypto
Crypgeek 勉強会 #13
titechcrypto
0
460
Lightning network
titechcrypto
0
43
About Bitcoin and its cryptography
titechcrypto
0
110
第8回 CrypGeek勉強会
titechcrypto
0
81
勉強会_7ゼロ知識証明.pdf
titechcrypto
0
440
勉強会7.pdf
titechcrypto
0
450
勉強会 #6
titechcrypto
0
370
勉強会 #6
titechcrypto
0
380
勉強会 #4
titechcrypto
0
330
Featured
See All Featured
How GitHub (no longer) Works
holman
316
150k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Ethics towards AI in product and experience design
skipperchong
2
460
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Chasing Engaging Ingredients in Design
codingconduct
0
390
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
660
Writing Fast Ruby
sferik
630
63k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
670
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
460
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Transcript
ϋογϡؔ ୈճ$SZQ(FFLษڧձ 5",&)*,00),"8"
ϋογϡؔͷͭͷಛ ҙͷϝοηʔδΛೖྗ͢ ΔͱɺϝοηʔδΛද͢Δ ݻఆͷΛग़ྗ͢Δؔ ಉ͡ϋογϡؔʹಉ͡ϝο ηʔδ͕ೖྗ͞Εͨͱ͖ɺಉ ͡ϋογϡ͕ग़ྗ͢Δؔ ೖྗ͕େ͖ͯ͘ߴͰϋο γϡΛܭࢉͰ͖Δؔ ੑ࣭ᶃ
ੑ࣭ᶄ ੑ࣭ᶅ
ཧతͳϋογϡؔ w ϝοηʔδNΛ҉߸Խ͠ɺOϏοτͷ ϋογϡIΛग़ྗ͢Δ߹ w ͜ͷཧతͳϋογϡؔݟ͔ͭͬͯ ͳ͍ɻ ੑ࣭ᶅΛແࢹ͢ΕߏͰ͖Δ
ϋογϡؔͷඪ४తͳ҆શੑ Ұํੑ ݪ૾ܭࢉࠔੑ ୈݪ૾ܭࢉࠔੑ িಥࠔੑ
Ұํੑ ݪ૾ܭࢉࠔੑ 0OFXBZOFTT 1SFJNBHF3FTJTUBODF • ߈ܸऀɺh (=H(m)) Λೖྗͱͯ͠༩͑ΒΕͨͱ͖ɺh = H(m’)
Λຬͨ͢m’ Λग़ྗ͢Δ͜ͱ͕ࠔͰ͋Δ͜ͱɻ͜ ͷ߹ɺm Ҏ֎ͷ m’ Λग़ྗͯ͠ɺϋογϡ͕ h Ͱ͋Εɺ߈ܸʹޭͨ͜͠ͱʹͳΓ·͢ɻ
ୈݪ૾ܭࢉࠔੑ 4FDPOE1SFJNBHF3FTJTUBODF • ͋Δϝοηʔδʢୈ1ݪ૾ʣͱͦͷϋογϡ ͕༩͑ΒΕͨͱ͖ʹɺಉҰͷϋογϡ ʹͳΔผͷϝοηʔδʢୈ2ݪ૾ʣΛܭࢉ͢ Δ͜ͱ͕ࠔͰ͋Δ͜ͱɻ • ऑ͍ҙຯͰͷিಥࠔੑͱݺΕΔɻ
িಥࠔੑ 4FDPOE1SFJNBHF3FTJTUBODF • ɹಉ͡ϋογϡʹͳΔΑ͏ͳ2ͭͷҟͳ ΔϝοηʔδΛٻΊΔ͜ͱ͕ࠔͰ͋Δ͜ ͱɻ߈ܸऀࢦఆ͞Εͨিಥ͢Δϋογϡ ΛٻΊΔඞཁͳ͘ɺিಥ͑͢͞Ε ҙͷϋογϡͰΑ͍͜ͱʹͳΓ·͢ɻ • ɹڧ͍ҙຯͰͷিಥࠔੑ
N N` I ϝοηʔδۭؒ ϋογϡۭؒ
҆શੑͷڧऑ • ୈ2ݪ૾ܭࢉࠔੑΛഁΔ͜ͱʢୈ2ݪ૾ΛٻΊΔ͜ͱʣͱɺিಥࠔ ੑΛഁΔ͜ͱʢҙͷিಥϖΞΛݟ͚ͭΔ͜ͱʣΛൺֱͨ͠߹ɺ߈ ܸऀʹͱͬͯޙऀͷํ͕࣮ݱ͍͢͠ɻ • ϋογϡ͕ؔিಥࠔੑΛ࣋ͭͳΒɺҰํੑΛ࣋ͪ·͢ɻ • Ұํੑ, ୈ̎ݪ૾ܭࢉࠔੑ
< িಥࠔੑ
িಥϖΞ͕ٻ·Δ݅ɾ֬ w QݸͷϘʔϧͱOݸͷശ͕͋ΓɺശʹϥϯμϜʹϘʔϧΛೖΕͨ࣌ʹɺি ಥ͢Δ֬1 Q O P(p, n) = (
1 (p > n ͷͱ͖.) 1 n n n 1 n n 2 n · · · n p+1 n (p n ͷͱ͖.) P(p, 365) ͷ߹ 8JLJQFEJBੜͷύϥυοΫε 㲋O
িಥϖΞ͕ٻ·Δ݅ɾ֬ w Qճͷϋογϡܭࢉ LϏοτ ͷࢼߦɺOLͷऔΓ͏Δϋογϡɻ w ോͷݪཧLϏοτͷϋογϡL ճͷܭࢉͰඞͣɺিಥϖΞ͕ ٻ·Δɻ w
ܭࢉճ͕LճҎԼͷ࣌㲋OLͷͱ͖ɺিಥϖΞ͕ٻ·Δ֬ Ҏ্ʹͳΔɻ
ͭͷ҆શੑΛഁΔͨΊͷܭࢉճ ҆શੑͷछྨ ഁΔͨΊʹඞཁͳܭࢉճ Ұํੑ 2k-1 ճఔ ୈ2ݪ૾ܭࢉࠔੑ 2k-1 ճఔ িಥࠔੑ
2k/2 ճఔ ૯ͨΓ߈ܸͷ߹ͷฏۉతͳܭࢉճ