EdDSA ( Edwards-Curve Digital Signature Algorithm ) ์ ์ฝ์๋ก ECC ์ฒ๋ผ ๋์งํธ ์๋ช
์ฉ ์๊ณ ๋ฆฌ์ฆ์ด๋ค.
ECDSA์ ๋นํ๋ฉด ์ฐ์ฐ ์๋๊ฐ ECDSA ๋ณด๋ค๋ ์กฐ๊ธ ๋น ๋ฅธ ์๊ณ ๋ฆฌ์ฆ์ด๋ค.
ํ์ฌ EdDSA ์๊ณ ๋ฆฌ์ฆ์ ECDSA ๋ณด๋ค๋ ๋๋ฆฌ ์ฌ์ฉ๋์ง๋ ์์ง๋ง ์ ์ ๋์ด๋๊ณ ์๋ค๊ณ ํ๋ค.
EdDSA ์์ ์ฃผ๋ก ์ฌ์ฉํ๋ Curve ๊ฐ Ed25519 ์ Ed448 ์ด๋ค.
๊ทธ๋ผ OpenSSL ๋ช ๋ น์ด๋ก ed25519์ ed448 ํค ์์ ๋ง๋ค์ด ๋ณด์.
ed25519 ๊ฐ์ธํค ์์ฑ
openssl genpkey -algorithm ed25519 -out private.pem
ed25519 ๊ฐ์ธํค ๊ฒฐ๊ณผ
-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIJ3Khy9FYLkzKEa1B6IEnjvJnTPE4Njn+ArGs9nRAlZ/
-----END PRIVATE KEY-----
ed25519 ๊ฐ์ธํค์์ ๊ณต๊ฐํค ์ถ์ถ
openssl pkey -in private.pem -pubout -out public.pem
ed25519 ๊ณต๊ฐํค ๊ฒฐ๊ณผ
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAqUQXEpZTdIo6jgt1uZdiYfk4Zszx/UDr/1oUe4vTxwY=
-----END PUBLIC KEY-----
ed448 ๊ฐ์ธํค ์์ฑ
openssl genpkey -algorithm ed448 -out ec448_private.pem
ed448 ๊ฐ์ธํค ๊ฒฐ๊ณผ
-----BEGIN PRIVATE KEY-----
MEcCAQAwBQYDK2VxBDsEOS4F29VxeSsz/ZQk/cMQLvONXy/Mu1h1qixRP0ngrpJS
MN/oMIga8Xcz3zPQrwHoi2E83QoRxfYerg==
-----END PRIVATE KEY-----
ed448 ๊ฐ์ธํค์์ ๊ณต๊ฐํค ์ถ์ถ
openssl pkey -in ed448_private.pem -pubout -out ed448_public.pem
ed448 ๊ณต๊ฐํค ๊ฒฐ๊ณผ
-----BEGIN PUBLIC KEY-----
MEMwBQYDK2VxAzoAyPCvZEIBjIVLPI6eBUiI0KBMA/6TOKNyhJ14h7v2AQ9LmqqZ
IOT1rVlvvvTMQ1OThIkT2tzsmHuA
-----END PUBLIC KEY-----
๋ฐ์ํ
'Manual > OpenSSL' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[OpenSSL] ECDH ํค ์ ๋ (Derive Key) ๋ช ๋ น์ด (0) | 2024.04.03 |
---|---|
[OpenSSL] DSA ํค ์ ๋ง๋ค๊ธฐ (0) | 2023.07.04 |
[OpenSSL] ca ๋ช ๋ น์ด (0) | 2023.05.24 |
[OpenSSL] crl ๋ช ๋ น์ด (0) | 2023.05.21 |
[OpenSSL] x509 ๋ช ๋ น์ด (0) | 2023.05.20 |