test: move ed448 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
668938bc94
commit
d8b6de6c78
8
test/fixtures/keys/Makefile
vendored
8
test/fixtures/keys/Makefile
vendored
@ -62,6 +62,8 @@ all: \
|
|||||||
ed25519_public.pem \
|
ed25519_public.pem \
|
||||||
x25519_private.pem \
|
x25519_private.pem \
|
||||||
x25519_public.pem \
|
x25519_public.pem \
|
||||||
|
ed448_private.pem \
|
||||||
|
ed448_public.pem \
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create Certificate Authority: ca1
|
# Create Certificate Authority: ca1
|
||||||
@ -674,6 +676,12 @@ x25519_private.pem:
|
|||||||
x25519_public.pem: x25519_private.pem
|
x25519_public.pem: x25519_private.pem
|
||||||
openssl pkey -in x25519_private.pem -pubout -out x25519_public.pem
|
openssl pkey -in x25519_private.pem -pubout -out x25519_public.pem
|
||||||
|
|
||||||
|
ed448_private.pem:
|
||||||
|
openssl genpkey -algorithm ed448 -out ed448_private.pem
|
||||||
|
|
||||||
|
ed448_public.pem: ed448_private.pem
|
||||||
|
openssl pkey -in ed448_private.pem -pubout -out ed448_public.pem
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.pfx *.pem *.srl ca2-database.txt ca2-serial fake-startcom-root-serial *.print *.old fake-startcom-root-issued-certs/*.pem
|
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
|
@> fake-startcom-root-database.txt
|
||||||
|
4
test/fixtures/keys/ed448_private.pem
vendored
Normal file
4
test/fixtures/keys/ed448_private.pem
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-----BEGIN PRIVATE KEY-----
|
||||||
|
MEcCAQAwBQYDK2VxBDsEOdOtCnu9bDdBqSHNNZ5xoDA5KdLBTUNPcKFaOADNX32s
|
||||||
|
dfpo52pCtPqfku/l3/OfUHsF43EfZsaaWA==
|
||||||
|
-----END PRIVATE KEY-----
|
4
test/fixtures/keys/ed448_public.pem
vendored
Normal file
4
test/fixtures/keys/ed448_public.pem
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-----BEGIN PUBLIC KEY-----
|
||||||
|
MEMwBQYDK2VxAzoAoX/ee5+jlcU53+BbGRsGIzly0V+SZtJ/oGXY0udf84q2hTW2
|
||||||
|
RdstLktvwpkVJOoNb7oDgc2V5ZUA
|
||||||
|
-----END PUBLIC KEY-----
|
4
test/fixtures/test_ed448_privkey.pem
vendored
4
test/fixtures/test_ed448_privkey.pem
vendored
@ -1,4 +0,0 @@
|
|||||||
-----BEGIN PRIVATE KEY-----
|
|
||||||
MEcCAQAwBQYDK2VxBDsEObxytD95dGN3Hxk7kVk+Lig1rGYTRr3YdaHjRog++Sgk
|
|
||||||
QD7KwKmxroBURtkE2N0JbQ3ctdrpGRB5DQ==
|
|
||||||
-----END PRIVATE KEY-----
|
|
4
test/fixtures/test_ed448_pubkey.pem
vendored
4
test/fixtures/test_ed448_pubkey.pem
vendored
@ -1,4 +0,0 @@
|
|||||||
-----BEGIN PUBLIC KEY-----
|
|
||||||
MEMwBQYDK2VxAzoAIESY3jnpGdB5UVJDCznrv0vmBFIzgSMu+gafsbCX1rFtsJwR
|
|
||||||
M6XUDQiEY7dk6rmm/Fktyawna5EA
|
|
||||||
-----END PUBLIC KEY-----
|
|
@ -206,8 +206,8 @@ const privateDsa = fixtures.readKey('dsa_private_encrypted_1025.pem',
|
|||||||
{ private: fixtures.readKey('ed25519_private.pem', 'ascii'),
|
{ private: fixtures.readKey('ed25519_private.pem', 'ascii'),
|
||||||
public: fixtures.readKey('ed25519_public.pem', 'ascii'),
|
public: fixtures.readKey('ed25519_public.pem', 'ascii'),
|
||||||
keyType: 'ed25519' },
|
keyType: 'ed25519' },
|
||||||
{ private: fixtures.readSync('test_ed448_privkey.pem', 'ascii'),
|
{ private: fixtures.readKey('ed448_private.pem', 'ascii'),
|
||||||
public: fixtures.readSync('test_ed448_pubkey.pem', 'ascii'),
|
public: fixtures.readKey('ed448_public.pem', 'ascii'),
|
||||||
keyType: 'ed448' },
|
keyType: 'ed448' },
|
||||||
{ private: fixtures.readKey('x25519_private.pem', 'ascii'),
|
{ private: fixtures.readKey('x25519_private.pem', 'ascii'),
|
||||||
public: fixtures.readKey('x25519_public.pem', 'ascii'),
|
public: fixtures.readKey('x25519_public.pem', 'ascii'),
|
||||||
|
@ -422,8 +422,8 @@ common.expectsError(
|
|||||||
public: fixtures.readKey('ed25519_public.pem', 'ascii'),
|
public: fixtures.readKey('ed25519_public.pem', 'ascii'),
|
||||||
algo: null,
|
algo: null,
|
||||||
sigLen: 64 },
|
sigLen: 64 },
|
||||||
{ private: fixtures.readSync('test_ed448_privkey.pem', 'ascii'),
|
{ private: fixtures.readKey('ed448_private.pem', 'ascii'),
|
||||||
public: fixtures.readSync('test_ed448_pubkey.pem', 'ascii'),
|
public: fixtures.readKey('ed448_public.pem', 'ascii'),
|
||||||
algo: null,
|
algo: null,
|
||||||
sigLen: 114 },
|
sigLen: 114 },
|
||||||
{ private: fixtures.readKey('rsa_private_2048.pem', 'ascii'),
|
{ private: fixtures.readKey('rsa_private_2048.pem', 'ascii'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user