6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

楕円曲線暗号の概要

Last updated at Posted at 2018-07-24

RSAを置き換える次世代の暗号と呼ばれる楕円曲線暗号について、鍵交換と暗号化に応用する概念を簡単ににまとめてみました。

基本理論

  • 有限体上の楕円曲線( $y^2 = x^3 + ax + b$ )上の点 $G$ について、そのスカラー倍 $n \cdot G$ は同じ楕円曲線上の点になる。
  • ここで $n$、$G$、$n \cdot G$ について、$n$ と $G$ から $n \cdot G$ を求めることは容易だが、$G$ と $n \cdot G$ から $n$ を求めることは現実的な時間ではできない。(楕円離散対数問題)

共通鍵生成方法

楕円曲線暗号を使った鍵交換と暗号化は、2組の公開鍵・秘密鍵から同じ共通鍵を作ることができる性質を利用している。

  1. 楕円曲線のパラメータ $a$、$b$ とその楕円曲線上の点(ベースポイント)$G$ を事前に共有しておく。
  2. Aliceがランダムな整数 $a$ を作り、$a$ を秘密鍵、$a \cdot G$ を公開鍵として公開する。
  3. Bobも同様に秘密鍵 $b$ と、$b \cdot G$ を公開鍵として公開する。
  4. AliceとBobは自分の秘密鍵と相手の公開鍵を乗算することで共通鍵 $a \cdot b \cdot G \ (= b \cdot a \cdot G)$ を手に入れることができる。(楕円離散対数問題により公開鍵 $a \cdot G$ 、$b \cdot G$ から 秘密鍵 $a$、$b$ を求めることは困難となる。)
参考

代表的なアルゴリズム

  • 鍵共有
    • Elliptic Curve Diffie-Hellman Key Agreement (ECDH)
  • 署名
    • Elliptic Curve Digital Signature Algorithm (ECDSA)
  • 暗号化
    • Elliptic Curve Integrated Encryption Scheme (ECIES)
参考
6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?