Skip to content

Commit 03b92e9

Browse files
reasonablytallBridgeAR
authored andcommitted
test: move x448 keypairs to fixtures/keys/
PR-URL: #27962 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 4155bba commit 03b92e9

File tree

6 files changed

+19
-11
lines changed

6 files changed

+19
-11
lines changed

test/fixtures/keys/Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ all: \
6464
x25519_public.pem \
6565
ed448_private.pem \
6666
ed448_public.pem \
67+
x448_private.pem \
68+
x448_public.pem \
6769

6870
#
6971
# Create Certificate Authority: ca1
@@ -682,6 +684,12 @@ ed448_private.pem:
682684
ed448_public.pem: ed448_private.pem
683685
openssl pkey -in ed448_private.pem -pubout -out ed448_public.pem
684686

687+
x448_private.pem:
688+
openssl genpkey -algorithm x448 -out x448_private.pem
689+
690+
x448_public.pem: x448_private.pem
691+
openssl pkey -in x448_private.pem -pubout -out x448_public.pem
692+
685693
clean:
686694
rm -f *.pfx *.pem *.srl ca2-database.txt ca2-serial fake-startcom-root-serial *.print *.old fake-startcom-root-issued-certs/*.pem
687695
@> fake-startcom-root-database.txt

test/fixtures/keys/x448_private.pem

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-----BEGIN PRIVATE KEY-----
2+
MEYCAQAwBQYDK2VvBDoEOLTDbazv6vHZWOmODQ3kk8TUOQgApB4j75rpInT5zSLl
3+
/xJHK8ixF7f+4uo+mGTCrK1sktI5UmCZ
4+
-----END PRIVATE KEY-----

test/fixtures/keys/x448_public.pem

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MEIwBQYDK2VvAzkAioHSHVpTs6hMvghosEJDIR7ceFiE3+Xccxati64oOVJ7NWjf
3+
ozE7ae31PXIUFq6cVYgvSKsDFPA=
4+
-----END PUBLIC KEY-----

test/fixtures/test_x448_privkey.pem

-4
This file was deleted.

test/fixtures/test_x448_pubkey.pem

-4
This file was deleted.

test/parallel/test-crypto-key-objects.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ const privateDsa = fixtures.readKey('dsa_private_encrypted_1025.pem',
212212
{ private: fixtures.readKey('x25519_private.pem', 'ascii'),
213213
public: fixtures.readKey('x25519_public.pem', 'ascii'),
214214
keyType: 'x25519' },
215-
{ private: fixtures.readSync('test_x448_privkey.pem', 'ascii'),
216-
public: fixtures.readSync('test_x448_pubkey.pem', 'ascii'),
217-
keyType: 'x448' }
215+
{ private: fixtures.readKey('x448_private.pem', 'ascii'),
216+
public: fixtures.readKey('x448_public.pem', 'ascii'),
217+
keyType: 'x448' },
218218
].forEach((info) => {
219219
const keyType = info.keyType;
220220

0 commit comments

Comments
 (0)