Genese complexity report

<- crypto.d.ts
Methods : 233
Complexity index : 210.1
Cyclomatic complexity : 224
Cognitive complexity
100 % Correct 233/233
0 % Warning 0/233 (threshold : 10)
0 % Error 0/233 (threshold : 20)
Cyclomatic complexity
100 % Correct 233/233
0 % Warning 0/233 (threshold : 5)
0 % Error 0/233 (threshold : 10)
Methods of crypto.d.ts
createHash Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
            
                function createHash(algorithm: string, options?: HashOptions): Hash; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
createHmac Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                
                    private constructor();
            
                            
                        
copy Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    copy(): Hash; // ---------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
update Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    update(data: BinaryLike): Hash; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
update Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Hash; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
digest Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    digest(): Buffer; // ---------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
digest Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    digest(encoding: HexBase64Latin1Encoding): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                
                    private constructor();
            
                            
                        
update Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    update(data: BinaryLike): Hmac; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
update Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Hmac; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
digest Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    digest(): Buffer; // ---------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
digest Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    digest(encoding: HexBase64Latin1Encoding): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                
                    private constructor();
            
                            
                        
export Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    export(options: KeyExportOptions<'pem'>): string | Buffer; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
export Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    export(options?: KeyExportOptions<'der'>): Buffer; // --------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
createCipher Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                /** @deprecated since v10.0.0 use `createCipheriv()` */
                function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
createCipher Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                /** @deprecated since v10.0.0 use `createCipheriv()` */
                function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
createCipher Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                /** @deprecated since v10.0.0 use `createCipheriv()` */
                function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher; // ----------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
createCipheriv Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
            
                function createCipheriv( // ----------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    algorithm: CipherCCMTypes, // ----------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    key: CipherKey, // ---------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    iv: BinaryLike | null, // --------------------------------------------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
                    options: CipherCCMOptions // ------------------------------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                ): CipherCCM; // ---------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
createCipheriv Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function createCipheriv( // ------------- +0.1 Complexity index (+0.1 atomic)
                    algorithm: CipherGCMTypes, // ------- +0.2 Complexity index (+0.2 atomic)
                    key: CipherKey, // ------------------ +0.2 Complexity index (+0.2 atomic)
                    iv: BinaryLike | null, // ----------- +0.3 Complexity index (+0.3 atomic)
                    options?: CipherGCMOptions // ------- +0.2 Complexity index (+0.2 atomic)
                ): CipherGCM; // ------------------------ +0.1 Complexity index (+0.1 atomic)
            
                            
                        
createCipheriv Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                
                function createCipheriv( // ------------------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
                    algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions // ------- +1.0 Complexity index (+1.0 atomic)
                ): Cipher; // -------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                
                    private constructor();
            
                            
                        
update Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    update(data: BinaryLike): Buffer; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
update Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    update(data: string, input_encoding: Utf8AsciiBinaryEncoding): Buffer; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
update Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    update(data: NodeJS.ArrayBufferView, input_encoding: undefined, output_encoding: HexBase64BinaryEncoding): string; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
update Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    update(data: string, input_encoding: Utf8AsciiBinaryEncoding | undefined, output_encoding: HexBase64BinaryEncoding): string; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
final Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    final(): Buffer; // ------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
final Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    final(output_encoding: BufferEncoding): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
setAutoPadding Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    setAutoPadding(auto_padding?: boolean): this; // --------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
createDecipher Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                /** @deprecated since v10.0.0 use `createDecipheriv()` */
                function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
createDecipher Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                /** @deprecated since v10.0.0 use `createDecipheriv()` */
                function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
createDecipher Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                /** @deprecated since v10.0.0 use `createDecipheriv()` */
                function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; // ----------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
createDecipheriv Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
            
                function createDecipheriv( // ------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    algorithm: CipherCCMTypes, // --------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    key: CipherKey, // -------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    iv: BinaryLike | null, // ------------------------------------------------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
                    options: CipherCCMOptions, // --------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                ): DecipherCCM; // ------------------------------------------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
            
                            
                        
createDecipheriv Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function createDecipheriv( // ------------ +0.1 Complexity index (+0.1 atomic)
                    algorithm: CipherGCMTypes, // -------- +0.2 Complexity index (+0.2 atomic)
                    key: CipherKey, // ------------------- +0.2 Complexity index (+0.2 atomic)
                    iv: BinaryLike | null, // ------------ +0.3 Complexity index (+0.3 atomic)
                    options?: CipherGCMOptions, // ------- +0.2 Complexity index (+0.2 atomic)
                ): DecipherGCM; // ----------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
createDecipheriv Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                
                function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                
                    private constructor();
            
                            
                        
update Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    update(data: NodeJS.ArrayBufferView): Buffer; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
update Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    update(data: string, input_encoding: HexBase64BinaryEncoding): Buffer; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
update Complexity Index 1 Cyclomatic complexity 1
                            
                                
                    
                    update(data: NodeJS.ArrayBufferView, input_encoding: HexBase64BinaryEncoding | undefined, output_encoding: Utf8AsciiBinaryEncoding): string; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
update Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    update(data: string, input_encoding: HexBase64BinaryEncoding | undefined, output_encoding: Utf8AsciiBinaryEncoding): string; // ----------------------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
final Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    final(): Buffer; // ------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
final Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    final(output_encoding: BufferEncoding): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
setAutoPadding Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    setAutoPadding(auto_padding?: boolean): this; // --------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
createPrivateKey Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
            
                function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
createPublicKey Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject): KeyObject; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
createSecretKey Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject; // ----------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
createSign Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
            
                function createSign(algorithm: string, options?: stream.WritableOptions): Signer; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                
                    private constructor();
            
                            
                        
update Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
            
                    update(data: BinaryLike): Signer; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
update Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Signer; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
sign Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
sign Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, output_format: HexBase64Latin1Encoding): string; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
createVerify Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
            
                function createVerify(algorithm: string, options?: stream.WritableOptions): Verify; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                
                    private constructor();
            
                            
                        
update Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
            
                    update(data: BinaryLike): Verify; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
update Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Verify; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
verify Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
verify Complexity Index 1 Cyclomatic complexity 1
                            
                                
                    
                    verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: HexBase64Latin1Encoding): boolean; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
createDiffieHellman Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function createDiffieHellman(prime_length: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
createDiffieHellman Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function createDiffieHellman(prime: NodeJS.ArrayBufferView): DiffieHellman; // ------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
createDiffieHellman Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding): DiffieHellman; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
createDiffieHellman Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding, generator: number | NodeJS.ArrayBufferView): DiffieHellman; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
createDiffieHellman Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding, generator: string, generator_encoding: HexBase64Latin1Encoding): DiffieHellman; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                
                    private constructor();
            
                            
                        
generateKeys Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    generateKeys(): Buffer; // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
generateKeys Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    generateKeys(encoding: HexBase64Latin1Encoding): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
computeSecret Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
computeSecret Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding): Buffer; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
computeSecret Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    computeSecret(other_public_key: NodeJS.ArrayBufferView, output_encoding: HexBase64Latin1Encoding): string; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
computeSecret Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding, output_encoding: HexBase64Latin1Encoding): string; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
getPrime Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    getPrime(): Buffer; // ----------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
getPrime Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    getPrime(encoding: HexBase64Latin1Encoding): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
getGenerator Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    getGenerator(): Buffer; // ------------------------------------ +0.2 Complexity index (+0.2 atomic)
            
                            
                        
getGenerator Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    getGenerator(encoding: HexBase64Latin1Encoding): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
getPublicKey Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    getPublicKey(): Buffer; // ---------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
getPublicKey Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    getPublicKey(encoding: HexBase64Latin1Encoding): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
getPrivateKey Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    getPrivateKey(): Buffer; // --------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
getPrivateKey Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    getPrivateKey(encoding: HexBase64Latin1Encoding): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
setPublicKey Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    setPublicKey(public_key: NodeJS.ArrayBufferView): void; // --------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
setPublicKey Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    setPublicKey(public_key: string, encoding: BufferEncoding): void; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
setPrivateKey Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    setPrivateKey(private_key: NodeJS.ArrayBufferView): void; // --------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
setPrivateKey Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    setPrivateKey(private_key: string, encoding: BufferEncoding): void; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
getDiffieHellman Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                function getDiffieHellman(group_name: string): DiffieHellman; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
pbkdf2 Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function pbkdf2( // ---------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    password: BinaryLike, // ------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    salt: BinaryLike, // ----------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    iterations: number, // --------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    keylen: number, // ------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    digest: string, // ------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    callback: (err: Error | null, derivedKey: Buffer) => any, // ------- +0.7 Complexity index (+0.7 atomic)
                ): void; // ------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
            
                            
                        
pbkdf2Sync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function pbkdf2Sync(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string): Buffer; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
randomBytes Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
            
                function randomBytes(size: number): Buffer; // ------------------------------------------------------------------------------------ +0.3 Complexity index (+0.3 atomic)
            
                            
                        
randomBytes Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
pseudoRandomBytes Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function pseudoRandomBytes(size: number): Buffer; // --------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
pseudoRandomBytes Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
randomInt Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                
            
                function randomInt(max: number): number; // ------------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
            
                            
                        
randomInt Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function randomInt(min: number, max: number): number; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
randomInt Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                function randomInt(max: number, callback: (err: Error | null, value: number) => void): void; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
randomInt Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
randomFillSync Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
            
                function randomFillSync<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number, size?: number): T; // -------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
randomFill Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                
                function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, callback: (err: Error | null, buf: T) => void): void; // ------- +1.4 Complexity index (+1.4 atomic)
            
                            
                        
randomFill Complexity Index 1.5 Cyclomatic complexity 1
                            
                                
                
                function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, offset: number, callback: (err: Error | null, buf: T) => void): void; // ------- +1.5 Complexity index (+1.5 atomic)
            
                            
                        
randomFill Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, offset: number, size: number, callback: (err: Error | null, buf: T) => void): void; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
scrypt Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                
                function scrypt( // --------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    password: BinaryLike, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    salt: BinaryLike, // ---------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    keylen: number, callback: (err: Error | null, derivedKey: Buffer) => void, // ------- +0.8 Complexity index (+0.8 atomic)
                ): void; // ----------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
scrypt Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                function scrypt( // ----------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    password: BinaryLike, // -------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    salt: BinaryLike, // ------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    keylen: number, // -------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    options: ScryptOptions, // ------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    callback: (err: Error | null, derivedKey: Buffer) => void, // ------- +0.7 Complexity index (+0.7 atomic)
                ): void; // ------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
scryptSync Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
publicEncrypt Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
publicDecrypt Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
privateDecrypt Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                function privateDecrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; // ------------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
privateEncrypt Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                function privateEncrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
getCiphers Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function getCiphers(): string[]; // ----------------------------------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
getCurves Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function getCurves(): string[]; // -------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
getFips Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                function getFips(): 1 | 0; // ------------ +0.4 Complexity index (+0.4 atomic)
            
                            
                        
getHashes Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function getHashes(): string[]; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                
                    private constructor();
            
                            
                        
convertKey Complexity Index 2 Cyclomatic complexity 1
                            
                                
                    
                    static convertKey( // ------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                        key: BinaryLike, // ----------------------------------------- +0.2 Complexity index (+0.2 atomic)
                        curve: string, // ------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                        inputEncoding?: HexBase64Latin1Encoding, // ----------------- +0.2 Complexity index (+0.2 atomic)
                        outputEncoding?: "latin1" | "hex" | "base64", // ------------ +0.5 Complexity index (+0.5 atomic)
                        format?: "uncompressed" | "compressed" | "hybrid", // ------- +0.5 Complexity index (+0.5 atomic)
                    ): Buffer | string; // ------------------------------------------ +0.3 Complexity index (+0.3 atomic)
            
                            
                        
generateKeys Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    generateKeys(): Buffer; // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
generateKeys Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    generateKeys(encoding: HexBase64Latin1Encoding, format?: ECDHKeyFormat): string; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
computeSecret Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer; // ----------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
computeSecret Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding): Buffer; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
computeSecret Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    computeSecret(other_public_key: NodeJS.ArrayBufferView, output_encoding: HexBase64Latin1Encoding): string; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
computeSecret Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding, output_encoding: HexBase64Latin1Encoding): string; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
getPrivateKey Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    getPrivateKey(): Buffer; // ------------------------------------------------------------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
            
                            
                        
getPrivateKey Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    getPrivateKey(encoding: HexBase64Latin1Encoding): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
getPublicKey Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    getPublicKey(): Buffer; // ----------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
getPublicKey Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    getPublicKey(encoding: HexBase64Latin1Encoding, format?: ECDHKeyFormat): string; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
setPrivateKey Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    setPrivateKey(private_key: NodeJS.ArrayBufferView): void; // ------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
setPrivateKey Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    setPrivateKey(private_key: string, encoding: HexBase64Latin1Encoding): void; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
createECDH Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                function createECDH(curve_name: string): ECDH; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
timingSafeEqual Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; // ----------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; // ----------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult; // ----------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; // ---------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; // ---------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; // ---------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
generateKeyPairSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; // ---------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.5 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'rsa', options: RSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; // ------- +1.5 Complexity index (+1.5 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; // -------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.5 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'dsa', options: DSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; // ------- +1.5 Complexity index (+1.5 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; // ---------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.5 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ec', options: ECKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; // ------- +1.5 Complexity index (+1.5 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ed25519', options: ED25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; // ------------------------ +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'ed448', options: ED448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; // ------------------ +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'x25519', options: X25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
            
                function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; // ------------------------ +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
generateKeyPair Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                
                function generateKeyPair(type: 'x448', options: X448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                
                    function __promisify__(type: "rsa", options: RSAKeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "rsa", options: RSAKeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "rsa", options: RSAKeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "rsa", options: RSAKeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>; // ------------------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
            
                    function __promisify__(type: "dsa", options: DSAKeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "dsa", options: DSAKeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "dsa", options: DSAKeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "dsa", options: DSAKeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>; // ------------------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
            
                    function __promisify__(type: "ec", options: ECKeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ec", options: ECKeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ec", options: ECKeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ec", options: ECKeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>; // ------------------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
            
                    function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>; // ------------------------------ +0.7 Complexity index (+0.7 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
            
                    function __promisify__(type: "ed448", options: ED448KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ed448", options: ED448KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ed448", options: ED448KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ed448", options: ED448KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>; // ------------------------------ +0.7 Complexity index (+0.7 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
            
                    function __promisify__(type: "x25519", options: X25519KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "x25519", options: X25519KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "x25519", options: X25519KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "x25519", options: X25519KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "x25519", options?: X25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>; // ------------------------------ +0.7 Complexity index (+0.7 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
            
                    function __promisify__(type: "x448", options: X448KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "x448", options: X448KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "x448", options: X448KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "x448", options: X448KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>; // ------------------------------ +0.7 Complexity index (+0.7 atomic)
            
                            
                        
sign Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                
            
                /**
                 * Calculates and returns the signature for `data` using the given private key and
                 * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
                 * dependent upon the key type (especially Ed25519 and Ed448).
                 *
                 * If `key` is not a [`KeyObject`][], this function behaves as if `key` had been
                 * passed to [`crypto.createPrivateKey()`][].
                 */
                function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer; // ------- +1.3 Complexity index (+1.3 atomic)
            
                            
                        
verify Complexity Index 1.5 Cyclomatic complexity 1
                            
                                
                
            
                /**
                 * Calculates and returns the signature for `data` using the given private key and
                 * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
                 * dependent upon the key type (especially Ed25519 and Ed448).
                 *
                 * If `key` is not a [`KeyObject`][], this function behaves as if `key` had been
                 * passed to [`crypto.createPublicKey()`][].
                 */
                function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean; // ------- +1.5 Complexity index (+1.5 atomic)
            
                            
                        
diffieHellman Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
            
                /**
                 * Computes the Diffie-Hellman secret based on a privateKey and a publicKey.
                 * Both keys must have the same asymmetricKeyType, which must be one of
                 * 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES).
                 */
                function diffieHellman(options: { // ------------------------------------------------------------------------------------------------------------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    privateKey: KeyObject; // ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    publicKey: KeyObject // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                }): Buffer; // ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)