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 686cb13

Browse filesBrowse files
reasonablytallBridgeAR
authored andcommitted
test: move x25519 keypair 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 1f2de2f commit 686cb13
Copy full SHA for 686cb13

File tree

Expand file treeCollapse file tree

6 files changed

+16
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

6 files changed

+16
-8
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
@@ -45,6 +45,8 @@ all: \
4545
rsa_pss_public_2048_sha512_sha256_20.pem \
4646
ed25519_private.pem \
4747
ed25519_public.pem \
48+
x25519_private.pem \
49+
x25519_public.pem \
4850

4951
#
5052
# Create Certificate Authority: ca1
@@ -606,6 +608,12 @@ ed25519_private.pem:
606608
ed25519_public.pem: ed25519_private.pem
607609
openssl pkey -in ed25519_private.pem -pubout -out ed25519_public.pem
608610

611+
x25519_private.pem:
612+
openssl genpkey -algorithm x25519 -out x25519_private.pem
613+
614+
x25519_public.pem: x25519_private.pem
615+
openssl pkey -in x25519_private.pem -pubout -out x25519_public.pem
616+
609617
clean:
610618
rm -f *.pfx *.pem *.srl ca2-database.txt ca2-serial fake-startcom-root-serial *.print *.old fake-startcom-root-issued-certs/*.pem
611619
@> fake-startcom-root-database.txt
Collapse file
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-----BEGIN PRIVATE KEY-----
2+
MC4CAQAwBQYDK2VuBCIEIJi/yFpueUawC1BkXyWM8ONIBGFjL7UZHrD/Zo/KPDpn
3+
-----END PRIVATE KEY-----
Collapse file
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MCowBQYDK2VuAyEAaSb8Q+RndwfNnPeOYGYPDUN3uhAPnMLzXyfi+mqfhig=
3+
-----END PUBLIC KEY-----
Collapse file

‎test/fixtures/test_x25519_privkey.pem‎

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

‎test/fixtures/test_x25519_pubkey.pem‎

Copy file name to clipboardExpand all lines: test/fixtures/test_x25519_pubkey.pem
-3Lines changed: 0 additions & 3 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
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ const privateDsa = fixtures.readKey('dsa_private_encrypted_1025.pem',
209209
{ private: fixtures.readSync('test_ed448_privkey.pem', 'ascii'),
210210
public: fixtures.readSync('test_ed448_pubkey.pem', 'ascii'),
211211
keyType: 'ed448' },
212-
{ private: fixtures.readSync('test_x25519_privkey.pem', 'ascii'),
213-
public: fixtures.readSync('test_x25519_pubkey.pem', 'ascii'),
212+
{ private: fixtures.readKey('x25519_private.pem', 'ascii'),
213+
public: fixtures.readKey('x25519_public.pem', 'ascii'),
214214
keyType: 'x25519' },
215215
{ private: fixtures.readSync('test_x448_privkey.pem', 'ascii'),
216216
public: fixtures.readSync('test_x448_pubkey.pem', 'ascii'),

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.