Elliptic Curve Korean Certificate-based Digital Signature Algorithm
EC-KCDSA Key Pair Generation
edgetk -pkey keygen -algorithm eckcdsa -bits 283 -prv "Private.pem" -pass nil -pub "Public.pem"
ECKCDSA key pair generated successfully:
Private key saved to: albanese.atwebpages.com/directrix/Private.pem
Public key saved to: albanese.atwebpages.com/directrix/Public.pem
Fingerprint: UUUL2JxAXmSZPawjiSmldqYj9trVnyQQ+QrrvyDNVjI=
ECKCDSA (283-bit)
+-----------------+
| *%&^^^^^^^^^^|
| .=*=E^^^^##^^^|
| ..o.B=^*o&+%#/|
| ...+O...O+XO|
| . S *.*.+++|
| . * . |
| |
| |
| |
+-----------------+
Private Key Details
Content of the private key (Private.pem):
-----BEGIN ECKCDSA PRIVATE KEY-----
MIGPAgEAMA8GBij0KAMABQYFK4EEABEEeTB3AgEBBCQC0mhvTtjmcdq4HS9jpmZi
wt4xarQNR1L/Ieg2tZk9fzbWUQ6hTANKAAQEeQ4ljfNwyGFcQiQ89h+XJcLnaEal
8mhmhSEtkCeMxGFCUQkAeDdpPm9Fc213I1AGEyoDYl/vixQVSw7clWDIxQ/SVAIQ
0Sg=
-----END ECKCDSA PRIVATE KEY-----
Public Key Details
Content of the public key (Public.pem):
-----BEGIN ECKCDSA PUBLIC KEY-----
MF0wDwYGKPQoAwAFBgUrgQQAEQNKAAQEeQ4ljfNwyGFcQiQ89h+XJcLnaEal8mhm
hSEtkCeMxGFCUQkAeDdpPm9Fc213I1AGEyoDYl/vixQVSw7clWDIxQ/SVAIQ0Sg=
-----END ECKCDSA PUBLIC KEY-----
Private Key Details
edgetk -pkey text -key "Private.pem"
Private key details:
-----BEGIN ECKCDSA PRIVATE KEY-----
MIGPAgEAMA8GBij0KAMABQYFK4EEABEEeTB3AgEBBCQC0mhvTtjmcdq4HS9jpmZi
wt4xarQNR1L/Ieg2tZk9fzbWUQ6hTANKAAQEeQ4ljfNwyGFcQiQ89h+XJcLnaEal
8mhmhSEtkCeMxGFCUQkAeDdpPm9Fc213I1AGEyoDYl/vixQVSw7clWDIxQ/SVAIQ
0Sg=
-----END ECKCDSA PRIVATE KEY-----
Private-Key: (283-bit)
priv:
02:d2:68:6f:4e:d8:e6:71:da:b8:1d:2f:63:a6:66:
62:c2:de:31:6a:b4:0d:47:52:ff:21:e8:36:b5:99:
3d:7f:36:d6:51:0e
pub:
04:04:79:0e:25:8d:f3:70:c8:61:5c:42:24:3c:f6:
1f:97:25:c2:e7:68:46:a5:f2:68:66:85:21:2d:90:
27:8c:c4:61:42:51:09:78:37:69:3e:6f:45:73:6d:
77:23:50:06:13:2a:03:62:5f:ef:8b:14:15:4b:0e:
dc:95:60:c8:c5:0f:d2:54:02:10:d1:28
Curve: B-283
KeyID: f5849ec2b609b574283b2233b34bbd3f91c8224c
Public Key Details
edgetk -pkey text -key "Public.pem"
Public key details:
-----BEGIN PUBLIC KEY-----
MF0wDwYGKPQoAwAFBgUrgQQAEQNKAAQEeQ4ljfNwyGFcQiQ89h+XJcLnaEal8mhm
hSEtkCeMxGFCUQkAeDdpPm9Fc213I1AGEyoDYl/vixQVSw7clWDIxQ/SVAIQ0Sg=
-----END PUBLIC KEY-----
Public-Key: (283-bit)
pub.X:
04:79:0e:25:8d:f3:70:c8:61:5c:42:24:3c:f6:1f:
97:25:c2:e7:68:46:a5:f2:68:66:85:21:2d:90:27:
8c:c4:61:42:51:09
pub.Y:
78:37:69:3e:6f:45:73:6d:77:23:50:06:13:2a:03:
62:5f:ef:8b:14:15:4b:0e:dc:95:60:c8:c5:0f:d2:
54:02:10:d1:28
pub:
04:04:79:0e:25:8d:f3:70:c8:61:5c:42:24:3c:f6:
1f:97:25:c2:e7:68:46:a5:f2:68:66:85:21:2d:90:
27:8c:c4:61:42:51:09:78:37:69:3e:6f:45:73:6d:
77:23:50:06:13:2a:03:62:5f:ef:8b:14:15:4b:0e:
dc:95:60:c8:c5:0f:d2:54:02:10:d1:28
Curve: B-283
Digital Signature Generation
edgetk -pkey sign -algorithm eckcdsa -md lsh256 -key "Private.pem" "test.txt" > sign.txt
Digital signature generated successfully:
3049022100bb4e387d3b8e715cb4ee51fb53a8083331e25a25d335af88bf878a011a4ee7db022401255bcbedf5eed780a7a5a81eabf3a2ee4bc71a739df3d74d8b5b40e69edc575a25eb56
Digital Signature Verification
edgetk -pkey verify -algorithm eckcdsa -md lsh256 -key "Public.pem" -signature "3049022100bb4e387d3b8e715cb4ee51fb53a8083331e25a25d335af88bf878a011a4ee7db022401255bcbedf5eed780a7a5a81eabf3a2ee4bc71a739df3d74d8b5b40e69edc575a25eb56" "test.txt"
Signature verified successfully:
Verified: true