Elliptic Curve German Digital Signature Algorithm
EC-GDSA Key Pair Generation
edgetk -pkey keygen -algorithm ecgdsa -curve brainpoolp256r1 -prv "Private.pem" -pass nil -pub "Public.pem"
EC-GDSA 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: W1vJ+inNFqH6ZiioBTFcH5bDH8hlisGgdVzYcpnzHcM=
ECGDSA (256-bit)
+-----------------+
| =&^^^^^^^^^|
| ..BE^^^^^^^^|
| o.o+@^&X^#/|
| . .O.=oOo*=|
| . S * = .|
| . * . . |
| |
| |
| |
+-----------------+
Private Key Details
edgetk -pkey text -key "Private.pem"
Private key details:
-----BEGIN ECGDSA PRIVATE KEY-----
MIGIAgEAMBQGCCskAwMCBQIBBggrJAMDAgEBBwRtMGsCAQEEIDEjaYGsdR2unu6P
9YIFSP/13NK/dFrhf+Mouvqp6vuCoUQDQgAEWkYoW7V7CAkolo3WTtU7Oz+UjlDY
rN7xWTQzoXPAytY4JdXIAatP032B+1cFRG7JDoAmF/1pLNPI0idQPZO8nQ==
-----END ECGDSA PRIVATE KEY-----
Private-Key: (256-bit)
priv:
31:23:69:81:ac:75:1d:ae:9e:ee:8f:f5:82:05:48:
ff:f5:dc:d2:bf:74:5a:e1:7f:e3:28:ba:fa:a9:ea:
fb:82
pub:
04:5a:46:28:5b:b5:7b:08:09:28:96:8d:d6:4e:d5:
3b:3b:3f:94:8e:50:d8:ac:de:f1:59:34:33:a1:73:
c0:ca:d6:38:25:d5:c8:01:ab:4f:d3:7d:81:fb:57:
05:44:6e:c9:0e:80:26:17:fd:69:2c:d3:c8:d2:27:
50:3d:93:bc:9d
Curve: brainpoolP256r1
KeyID: 36d50f7d5a030e949e6171a5aecb4e970e7608ee
Public Key Details
edgetk -pkey text -key "Public.pem"
Public key details:
-----BEGIN PUBLIC KEY-----
MFowFAYIKyQDAwIFAgEGCCskAwMCAQEHA0IABFpGKFu1ewgJKJaN1k7VOzs/lI5Q
2Kze8Vk0M6FzwMrWOCXVyAGrT9N9gftXBURuyQ6AJhf9aSzTyNInUD2TvJ0=
-----END PUBLIC KEY-----
Public-Key: (256-bit)
pub.X:
5a:46:28:5b:b5:7b:08:09:28:96:8d:d6:4e:d5:3b:
3b:3f:94:8e:50:d8:ac:de:f1:59:34:33:a1:73:c0:
ca:d6
pub.Y:
38:25:d5:c8:01:ab:4f:d3:7d:81:fb:57:05:44:6e:
c9:0e:80:26:17:fd:69:2c:d3:c8:d2:27:50:3d:93:
bc:9d
pub:
04:5a:46:28:5b:b5:7b:08:09:28:96:8d:d6:4e:d5:
3b:3b:3f:94:8e:50:d8:ac:de:f1:59:34:33:a1:73:
c0:ca:d6:38:25:d5:c8:01:ab:4f:d3:7d:81:fb:57:
05:44:6e:c9:0e:80:26:17:fd:69:2c:d3:c8:d2:27:
50:3d:93:bc:9d
Curve: brainpoolP256r1
Digital Signature Generation
edgetk -pkey sign -algorithm ecgdsa -md esch256 -key "Private.pem" "test.txt" > sign.txt
Digital signature generated successfully:
304402205499d913d143ce4be0b5b02c973ecc2e2f12a0f1ad365d4426c372cb7aeb63e50220047298259c68e2359bb36a134b1f0f01c8125bb2fc077ebfbefd381ebcb76ba2
Digital Signature Verification
edgetk -pkey verify -algorithm ecgdsa -md esch256 -key "Public.pem" -signature "304402205499d913d143ce4be0b5b02c973ecc2e2f12a0f1ad365d4426c372cb7aeb63e50220047298259c68e2359bb36a134b1f0f01c8125bb2fc077ebfbefd381ebcb76ba2" "test.txt"
Signature verified successfully:
Verified: true