mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-22 17:38:26 +01:00
genRSAAndEd25519KeyPairではキーを直列に生成する?
This commit is contained in:
parent
57bfffedae
commit
d0aada55c1
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@
|
||||||
import { genEd25519KeyPair, genRsaKeyPair } from '@misskey-dev/node-http-message-signatures';
|
import { genEd25519KeyPair, genRsaKeyPair } from '@misskey-dev/node-http-message-signatures';
|
||||||
|
|
||||||
export async function genRSAAndEd25519KeyPair(rsaModulusLength = 4096) {
|
export async function genRSAAndEd25519KeyPair(rsaModulusLength = 4096) {
|
||||||
const [rsa, ed25519] = await Promise.all([genRsaKeyPair(rsaModulusLength), genEd25519KeyPair()]);
|
const rsa = await genRsaKeyPair(rsaModulusLength);
|
||||||
|
const ed25519 = await genEd25519KeyPair();
|
||||||
return {
|
return {
|
||||||
publicKey: rsa.publicKey,
|
publicKey: rsa.publicKey,
|
||||||
privateKey: rsa.privateKey,
|
privateKey: rsa.privateKey,
|
||||||
|
|
Loading…
Reference in a new issue