Generate PEM pub key directly from DER prv key

Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
Pengyu Lv 2023-06-05 17:40:15 +08:00
parent d1200ee2e8
commit 21e5939479

View File

@ -1019,8 +1019,8 @@ ec_x25519_prv.pem: ec_x25519_prv.der
$(OPENSSL) pkey -in $< -inform DER -out $@
all_final += ec_x25519_prv.pem
ec_x25519_pub.pem: ec_x25519_pub.der
$(OPENSSL) pkey -in $< -inform DER -out $@ -pubin
ec_x25519_pub.pem: ec_x25519_prv.der
$(OPENSSL) pkey -in $< -inform DER -out $@ -pubout
all_final += ec_x25519_pub.pem
ec_x448_prv.der:
@ -1035,8 +1035,8 @@ ec_x448_prv.pem: ec_x448_prv.der
$(OPENSSL) pkey -in $< -inform DER -out $@
all_final += ec_x448_prv.pem
ec_x448_pub.pem: ec_x448_pub.der
$(OPENSSL) pkey -in $< -inform DER -out $@ -pubin
ec_x448_pub.pem: ec_x448_prv.der
$(OPENSSL) pkey -in $< -inform DER -out $@ -pubout
all_final += ec_x448_pub.pem
################################################################