Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7d1f15f

Browse filesBrowse files
reasonablytallBridgeAR
authored andcommitted
test: move x448 keypairs to fixtures/keys/
PR-URL: #27962 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 22bbdc5 commit 7d1f15f
Copy full SHA for 7d1f15f

File tree

Expand file treeCollapse file tree

6 files changed

+19
-11
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

6 files changed

+19
-11
lines changed
Open diff view settings
Collapse file

‎test/fixtures/keys/Makefile‎

Copy file name to clipboardExpand all lines: test/fixtures/keys/Makefile
+8Lines changed: 8 additions & 0 deletions
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
Collapse file
+4Lines changed: 4 additions & 0 deletions
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-----
Collapse file

‎test/fixtures/keys/x448_public.pem‎

Copy file name to clipboard
+4Lines changed: 4 additions & 0 deletions
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-----
Collapse file

‎test/fixtures/test_x448_privkey.pem‎

Copy file name to clipboardExpand all lines: test/fixtures/test_x448_privkey.pem
-4Lines changed: 0 additions & 4 deletions
This file was deleted.
Collapse file

‎test/fixtures/test_x448_pubkey.pem‎

Copy file name to clipboardExpand all lines: test/fixtures/test_x448_pubkey.pem
-4Lines changed: 0 additions & 4 deletions
This file was deleted.
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-key-objects.js
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.