<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mjt</author_name>
  <author_url>https://blog.hatena.ne.jp/mjt/</author_url>
  <blog_title>.mjtの日記復帰計画</blog_title>
  <blog_url>https://mjt.hatenadiary.com/</blog_url>
  <categories>
    <anon>series</anon>
    <anon>security</anon>
  </categories>
  <description>以後、R6RSを使ってSSHを実装していく。 最初のステップ 本当の最初のステップはSSHのバージョンや、使用するアルゴリズムを同意することになるが、これは後回しにする。 最初のステップは、ホストとクライアントの間で&quot;安全な&quot;接続を確立することにある。これはDH鍵交換で行われる(RFC 4253,section 7)。 DH鍵交換(やRSA)には以下のアルゴリズムが必要になる。 a^b (mod p) a * b (多倍長、以下同じ) a &gt;&gt; 1 a mod p ハッシュ(次回) 乱数の生成 普通に接続、シェルセッションを使用するだけでは素数を生成する必要は無い。素数の生成は鍵を生成するとき…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmjt.hatenadiary.com%2Fentry%2F20090205%2Fp1&quot; title=&quot; 手作りSSH の2 - 演算プリミティブ(exptmod),DH鍵交換 - .mjtの日記復帰計画&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-02-05 00:00:00</published>
  <title> 手作りSSH の2 - 演算プリミティブ(exptmod),DH鍵交換</title>
  <type>rich</type>
  <url>https://mjt.hatenadiary.com/entry/20090205/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
