るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.012秒)

別のキーワード

  1. dh compute_key
  2. ec dh_compute_key
  3. openssl compute_key
  4. openssl dh_compute_key
  5. compute_key integer

ライブラリ

検索結果

OpenSSL::PKey::DH (13.0)

Diffie-Hellman 鍵共有クラス

...て dh1 側で鍵となる文字列を得る
key1 = dh1.compute_key(dh2.pub_key)
# dh2 の秘密鍵と dh1 の公開鍵、共有された鍵パラメータを
# 用いて dh2 側で鍵となる文字列を得る
key2 = dh1.compute_key(dh1.pub_key)
# key1 と key2 は同じ文字列とな...