Preparing search index...
The search index is not available bun-types
generate Key Pair( type: "rsa" , options: "crypto" . RSAKeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "rsa"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "rsa" , options: "crypto" . RSAKeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "rsa"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "rsa" , options: "crypto" . RSAKeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "rsa"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "rsa" , options: "crypto" . RSAKeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "rsa" , options: "crypto" . RSAKeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "rsa-pss" , options: "crypto" . RSAPSSKeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "rsa-pss"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "rsa-pss" , options: "crypto" . RSAPSSKeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "rsa-pss"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "rsa-pss" , options: "crypto" . RSAPSSKeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "rsa-pss"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "rsa-pss" , options: "crypto" . RSAPSSKeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "rsa-pss" , options: "crypto" . RSAPSSKeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "dsa" , options: "crypto" . DSAKeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "dsa"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "dsa" , options: "crypto" . DSAKeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "dsa"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "dsa" , options: "crypto" . DSAKeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "dsa"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "dsa" , options: "crypto" . DSAKeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "dsa" , options: "crypto" . DSAKeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "ec" , options: "crypto" . ECKeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "ec"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ec" , options: "crypto" . ECKeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "ec"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "ec" , options: "crypto" . ECKeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "ec"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ec" , options: "crypto" . ECKeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "ec" , options: "crypto" . ECKeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "ed25519" , options: "crypto" . ED25519KeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "ed25519"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ed25519" , options: "crypto" . ED25519KeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "ed25519"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "ed25519" , options: "crypto" . ED25519KeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "ed25519"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ed25519" , options: "crypto" . ED25519KeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "ed25519" , options: "crypto" . ED25519KeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "ed448" , options: "crypto" . ED448KeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "ed448"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ed448" , options: "crypto" . ED448KeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "ed448"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "ed448" , options: "crypto" . ED448KeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "ed448"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ed448" , options: "crypto" . ED448KeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "ed448" , options: "crypto" . ED448KeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "x25519" , options: "crypto" . X25519KeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "x25519"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "x25519" , options: "crypto" . X25519KeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "x25519"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "x25519" , options: "crypto" . X25519KeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "x25519"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "x25519" , options: "crypto" . X25519KeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "x25519" , options: "crypto" . X25519KeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "x448" , options: "crypto" . X448KeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "x448"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "x448" , options: "crypto" . X448KeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "x448"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "x448" , options: "crypto" . X448KeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "x448"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "x448" , options: "crypto" . X448KeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "x448" , options: "crypto" . X448KeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "rsa" , options: "crypto" . RSAKeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "rsa"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "rsa" , options: "crypto" . RSAKeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "rsa"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "rsa" , options: "crypto" . RSAKeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "rsa"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "rsa" , options: "crypto" . RSAKeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "rsa" , options: "crypto" . RSAKeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "rsa-pss" , options: "crypto" . RSAPSSKeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "rsa-pss"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "rsa-pss" , options: "crypto" . RSAPSSKeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "rsa-pss"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "rsa-pss" , options: "crypto" . RSAPSSKeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "rsa-pss"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "rsa-pss" , options: "crypto" . RSAPSSKeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "rsa-pss" , options: "crypto" . RSAPSSKeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "dsa" , options: "crypto" . DSAKeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "dsa"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "dsa" , options: "crypto" . DSAKeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "dsa"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "dsa" , options: "crypto" . DSAKeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "dsa"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "dsa" , options: "crypto" . DSAKeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "dsa" , options: "crypto" . DSAKeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "ec" , options: "crypto" . ECKeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "ec"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ec" , options: "crypto" . ECKeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "ec"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "ec" , options: "crypto" . ECKeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "ec"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ec" , options: "crypto" . ECKeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "ec" , options: "crypto" . ECKeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "ed25519" , options: "crypto" . ED25519KeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "ed25519"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ed25519" , options: "crypto" . ED25519KeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "ed25519"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "ed25519" , options: "crypto" . ED25519KeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "ed25519"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ed25519" , options: "crypto" . ED25519KeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "ed25519" , options: "crypto" . ED25519KeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "ed448" , options: "crypto" . ED448KeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "ed448"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ed448" , options: "crypto" . ED448KeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "ed448"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "ed448" , options: "crypto" . ED448KeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "ed448"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "ed448" , options: "crypto" . ED448KeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "ed448" , options: "crypto" . ED448KeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "x25519" , options: "crypto" . X25519KeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "x25519"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "x25519" , options: "crypto" . X25519KeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "x25519"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "x25519" , options: "crypto" . X25519KeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "x25519"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "x25519" , options: "crypto" . X25519KeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "x25519" , options: "crypto" . X25519KeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
generate Key Pair( type: "x448" , options: "crypto" . X448KeyPairOptions < "pem" , "pem" > , callback: ( ( err: Error , publicKey: string , privateKey: string ) => void ) ) : void
Parameters
type: "x448"
callback: ( ( err: Error , publicKey: string , privateKey: string ) => void )
( err: Error , publicKey: string , privateKey: string ) : void
Parameters
err: Error
publicKey: string
privateKey: string
Returns void
Returns void
generate Key Pair( type: "x448" , options: "crypto" . X448KeyPairOptions < "pem" , "der" > , callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void ) ) : void
Parameters
type: "x448"
callback: ( ( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) => void )
( err: Error , publicKey: string , privateKey: "buffer" . Buffer ) : void
Parameters
err: Error
publicKey: string
Returns void
Returns void
generate Key Pair( type: "x448" , options: "crypto" . X448KeyPairOptions < "der" , "pem" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void ) ) : void
Parameters
type: "x448"
callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) => void )
( err: Error , publicKey: "buffer" . Buffer , privateKey: string ) : void
Parameters
err: Error
privateKey: string
Returns void
Returns void
generate Key Pair( type: "x448" , options: "crypto" . X448KeyPairOptions < "der" , "der" > , callback: ( ( err: Error , publicKey: "buffer" . Buffer , privateKey: "buffer" . Buffer ) => void ) ) : void
Returns void
generate Key Pair( type: "x448" , options: "crypto" . X448KeyPairKeyObjectOptions , callback: ( ( err: Error , publicKey: "crypto" . KeyObject , privateKey: "crypto" . KeyObject ) => void ) ) : void
Returns void
Generates a new asymmetric key pair of the given
type
. RSA, RSA-PSS, DSA, EC, Ed25519, Ed448, X25519, X448, and DH are currently supported.If a
publicKeyEncoding
orprivateKeyEncoding
was specified, this function behaves as ifkeyObject.export()
had been called on its result. Otherwise, the respective part of the key is returned as aKeyObject
.It is recommended to encode public keys as
'spki'
and private keys as'pkcs8'
with encryption for long-term storage:On completion,
callback
will be called witherr
set toundefined
andpublicKey
/privateKey
representing the generated key pair.If this method is invoked as its
util.promisify()
ed version, it returns aPromise
for anObject
withpublicKey
andprivateKey
properties.