test: move x448 keypairs to fixtures/keys/
PR-URL: https://github.com/nodejs/node/pull/27962 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
d8b6de6c78
commit
1a6a80e38c
8
test/fixtures/keys/Makefile
vendored
8
test/fixtures/keys/Makefile
vendored
@ -64,6 +64,8 @@ all: \
|
||||
x25519_public.pem \
|
||||
ed448_private.pem \
|
||||
ed448_public.pem \
|
||||
x448_private.pem \
|
||||
x448_public.pem \
|
||||
|
||||
#
|
||||
# Create Certificate Authority: ca1
|
||||
@ -682,6 +684,12 @@ ed448_private.pem:
|
||||
ed448_public.pem: ed448_private.pem
|
||||
openssl pkey -in ed448_private.pem -pubout -out ed448_public.pem
|
||||
|
||||
x448_private.pem:
|
||||
openssl genpkey -algorithm x448 -out x448_private.pem
|
||||
|
||||
x448_public.pem: x448_private.pem
|
||||
openssl pkey -in x448_private.pem -pubout -out x448_public.pem
|
||||
|
||||
clean:
|
||||
rm -f *.pfx *.pem *.srl ca2-database.txt ca2-serial fake-startcom-root-serial *.print *.old fake-startcom-root-issued-certs/*.pem
|
||||
@> fake-startcom-root-database.txt
|
||||
|
4
test/fixtures/keys/x448_private.pem
vendored
Normal file
4
test/fixtures/keys/x448_private.pem
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MEYCAQAwBQYDK2VvBDoEOLTDbazv6vHZWOmODQ3kk8TUOQgApB4j75rpInT5zSLl
|
||||
/xJHK8ixF7f+4uo+mGTCrK1sktI5UmCZ
|
||||
-----END PRIVATE KEY-----
|
4
test/fixtures/keys/x448_public.pem
vendored
Normal file
4
test/fixtures/keys/x448_public.pem
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MEIwBQYDK2VvAzkAioHSHVpTs6hMvghosEJDIR7ceFiE3+Xccxati64oOVJ7NWjf
|
||||
ozE7ae31PXIUFq6cVYgvSKsDFPA=
|
||||
-----END PUBLIC KEY-----
|
4
test/fixtures/test_x448_privkey.pem
vendored
4
test/fixtures/test_x448_privkey.pem
vendored
@ -1,4 +0,0 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MEYCAQAwBQYDK2VvBDoEOPilLIAZTQqUbFb0LhTGaqn47zN2p2yGVk+2hhQQk9C8
|
||||
8SvFqEFw73YITSIJ2NUBZnZKNz2nGkrm
|
||||
-----END PRIVATE KEY-----
|
4
test/fixtures/test_x448_pubkey.pem
vendored
4
test/fixtures/test_x448_pubkey.pem
vendored
@ -1,4 +0,0 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MEIwBQYDK2VvAzkAbceBBM+LkveTK09QojZdnHokCh7lOWxyVZrlbH3Ny3WorprD
|
||||
Iir5A6heZzlRnz1elOHp7ZpPfWk=
|
||||
-----END PUBLIC KEY-----
|
@ -212,9 +212,9 @@ const privateDsa = fixtures.readKey('dsa_private_encrypted_1025.pem',
|
||||
{ private: fixtures.readKey('x25519_private.pem', 'ascii'),
|
||||
public: fixtures.readKey('x25519_public.pem', 'ascii'),
|
||||
keyType: 'x25519' },
|
||||
{ private: fixtures.readSync('test_x448_privkey.pem', 'ascii'),
|
||||
public: fixtures.readSync('test_x448_pubkey.pem', 'ascii'),
|
||||
keyType: 'x448' }
|
||||
{ private: fixtures.readKey('x448_private.pem', 'ascii'),
|
||||
public: fixtures.readKey('x448_public.pem', 'ascii'),
|
||||
keyType: 'x448' },
|
||||
].forEach((info) => {
|
||||
const keyType = info.keyType;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user