Packages

o

fs2.internal.jsdeps.node

nodeCryptoMod

object nodeCryptoMod

Source
nodeCryptoMod.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. nodeCryptoMod
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class CertificateCls extends Object with StObject with Certificate
    Annotations
    @JSType() @JSImport("node:crypto", "Certificate") @native()
  2. class Cipher extends Object with StObject
    Annotations
    @JSType() @JSImport("node:crypto", "Cipher") @native()
  3. class Decipher extends Object with StObject
    Annotations
    @JSType() @JSImport("node:crypto", "Decipher") @native()
  4. class DiffieHellman_ extends cryptoMod.DiffieHellman_
    Annotations
    @JSType() @JSImport("node:crypto", "DiffieHellman") @native()
  5. class ECDH extends cryptoMod.ECDH
    Annotations
    @JSType() @JSImport("node:crypto", "ECDH") @native()
  6. class Hash extends Object with StObject
    Annotations
    @JSType() @JSImport("node:crypto", "Hash") @native()
  7. class Hmac extends Object with StObject
    Annotations
    @JSType() @JSImport("node:crypto", "Hmac") @native()
  8. class KeyObject extends cryptoMod.KeyObject
    Annotations
    @JSType() @JSImport("node:crypto", "KeyObject") @native()
  9. class Signer extends Object with StObject
    Annotations
    @JSType() @JSImport("node:crypto", "Signer") @native()
  10. class Verify_ extends Object with StObject
    Annotations
    @JSType() @JSImport("node:crypto", "Verify") @native()
  11. class X509Certificate extends cryptoMod.X509Certificate
    Annotations
    @JSType() @JSImport("node:crypto", "X509Certificate") @native()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val ^: Any
    Annotations
    @JSImport("node:crypto", JSImport.Namespace) @native()
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def checkPrime(value: LargeNumberLike, options: CheckPrimeOptions, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  7. def checkPrime(value: LargeNumberLike, callback: Function2[|[Error, Null], Boolean, Unit]): Unit

    Checks the primality of the candidate.

    Checks the primality of the candidate.

    Annotations
    @inline()
  8. def checkPrimeSync(value: LargeNumberLike, options: CheckPrimeOptions): Boolean
    Annotations
    @inline()
  9. def checkPrimeSync(value: LargeNumberLike): Boolean

    Checks the primality of the candidate.

    Checks the primality of the candidate.

    Annotations
    @inline()
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  11. def createCipher(algorithm: java.lang.String, password: BinaryLike, options: TransformOptions): cryptoMod.Cipher
    Annotations
    @inline()
  12. def createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options: CipherGCMOptions): CipherGCM
    Annotations
    @inline()
  13. def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: Null, options: TransformOptions): cryptoMod.Cipher
    Annotations
    @inline()
  14. def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike, options: TransformOptions): cryptoMod.Cipher
    Annotations
    @inline()
  15. def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike): cryptoMod.Cipher
    Annotations
    @inline()
  16. def createCipheriv(algorithm: java.lang.String, key: CipherKey): cryptoMod.Cipher
    Annotations
    @inline()
  17. def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: Null, options: CipherGCMOptions): CipherGCM
    Annotations
    @inline()
  18. def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options: CipherGCMOptions): CipherGCM
    Annotations
    @inline()
  19. def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike): CipherGCM
    Annotations
    @inline()
  20. def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey): CipherGCM
    Annotations
    @inline()
  21. def createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: Null, options: CipherCCMOptions): CipherCCM
    Annotations
    @inline()
  22. def createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): CipherCCM
    Annotations
    @inline()
  23. def createDecipher(algorithm: java.lang.String, password: BinaryLike, options: TransformOptions): cryptoMod.Decipher
    Annotations
    @inline()
  24. def createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options: CipherGCMOptions): DecipherGCM
    Annotations
    @inline()
  25. def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: Null, options: TransformOptions): cryptoMod.Decipher
    Annotations
    @inline()
  26. def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike, options: TransformOptions): cryptoMod.Decipher
    Annotations
    @inline()
  27. def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike): cryptoMod.Decipher
    Annotations
    @inline()
  28. def createDecipheriv(algorithm: java.lang.String, key: CipherKey): cryptoMod.Decipher
    Annotations
    @inline()
  29. def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: Null, options: CipherGCMOptions): DecipherGCM
    Annotations
    @inline()
  30. def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options: CipherGCMOptions): DecipherGCM
    Annotations
    @inline()
  31. def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike): DecipherGCM
    Annotations
    @inline()
  32. def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey): DecipherGCM
    Annotations
    @inline()
  33. def createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: Null, options: CipherCCMOptions): DecipherCCM
    Annotations
    @inline()
  34. def createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): DecipherCCM
    Annotations
    @inline()
  35. def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: Double): cryptoMod.DiffieHellman_
    Annotations
    @inline()
  36. def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: java.lang.String, generator_encoding: BinaryToTextEncoding): cryptoMod.DiffieHellman_
    Annotations
    @inline()
  37. def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: ArrayBufferView): cryptoMod.DiffieHellman_
    Annotations
    @inline()
  38. def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding): cryptoMod.DiffieHellman_
    Annotations
    @inline()
  39. def createDiffieHellman(prime: ArrayBufferView): cryptoMod.DiffieHellman_
    Annotations
    @inline()
  40. def createDiffieHellman(prime_length: Double, generator: Double): cryptoMod.DiffieHellman_
    Annotations
    @inline()
  41. def createDiffieHellman(prime_length: Double, generator: ArrayBufferView): cryptoMod.DiffieHellman_
    Annotations
    @inline()
  42. def createDiffieHellman(prime_length: Double): cryptoMod.DiffieHellman_
    Annotations
    @inline()
  43. def createECDH(curve_name: java.lang.String): cryptoMod.ECDH
    Annotations
    @inline()
  44. def createHash(algorithm: java.lang.String, options: HashOptions): cryptoMod.Hash
    Annotations
    @inline()
  45. def createHash(algorithm: java.lang.String): cryptoMod.Hash
    Annotations
    @inline()
  46. def createHmac(algorithm: java.lang.String, key: cryptoMod.KeyObject, options: TransformOptions): cryptoMod.Hmac
    Annotations
    @inline()
  47. def createHmac(algorithm: java.lang.String, key: cryptoMod.KeyObject): cryptoMod.Hmac
    Annotations
    @inline()
  48. def createHmac(algorithm: java.lang.String, key: BinaryLike, options: TransformOptions): cryptoMod.Hmac
    Annotations
    @inline()
  49. def createHmac(algorithm: java.lang.String, key: BinaryLike): cryptoMod.Hmac
    Annotations
    @inline()
  50. def createPrivateKey(key: java.lang.String): cryptoMod.KeyObject
    Annotations
    @inline()
  51. def createPrivateKey(key: PrivateKeyInput): cryptoMod.KeyObject
    Annotations
    @inline()
  52. def createPrivateKey(key: JsonWebKeyInput): cryptoMod.KeyObject
    Annotations
    @inline()
  53. def createPrivateKey(key: Buffer): cryptoMod.KeyObject
    Annotations
    @inline()
  54. def createPublicKey(key: java.lang.String): cryptoMod.KeyObject
    Annotations
    @inline()
  55. def createPublicKey(key: PublicKeyInput): cryptoMod.KeyObject
    Annotations
    @inline()
  56. def createPublicKey(key: cryptoMod.KeyObject): cryptoMod.KeyObject
    Annotations
    @inline()
  57. def createPublicKey(key: JsonWebKeyInput): cryptoMod.KeyObject
    Annotations
    @inline()
  58. def createPublicKey(key: Buffer): cryptoMod.KeyObject
    Annotations
    @inline()
  59. def createSecretKey(key: ArrayBufferView): cryptoMod.KeyObject
    Annotations
    @inline()
  60. def createSign(algorithm: java.lang.String, options: WritableOptions): cryptoMod.Signer
    Annotations
    @inline()
  61. def createSign(algorithm: java.lang.String): cryptoMod.Signer
    Annotations
    @inline()
  62. def createVerify(algorithm: java.lang.String, options: WritableOptions): cryptoMod.Verify_
    Annotations
    @inline()
  63. def createVerify(algorithm: java.lang.String): cryptoMod.Verify_
    Annotations
    @inline()
  64. def diffieHellman(options: PrivateKey): Buffer

    Computes the Diffie-Hellman secret based on a privateKey and a publicKey.

    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).

    Annotations
    @inline()
  65. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  66. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  67. def generateKeyPair(type: x448, options: Unit, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  68. def generateKeyPair(type: x448, options: X448KeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
    Annotations
    @inline()
  69. def generateKeyPair(type: x448, options: X448KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  70. def generateKeyPair(type: x25519, options: Unit, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  71. def generateKeyPair(type: x25519, options: X25519KeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
    Annotations
    @inline()
  72. def generateKeyPair(type: x25519, options: X25519KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  73. def generateKeyPair(type: rsa, options: RSAKeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
    Annotations
    @inline()
  74. def generateKeyPair(type: rsa, options: RSAKeyPairKeyObjectOptions, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  75. def generateKeyPair(type: ed448, options: Unit, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  76. def generateKeyPair(type: ed448, options: ED448KeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
    Annotations
    @inline()
  77. def generateKeyPair(type: ed448, options: ED448KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  78. def generateKeyPair(type: ed25519, options: Unit, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  79. def generateKeyPair(type: ed25519, options: ED25519KeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
    Annotations
    @inline()
  80. def generateKeyPair(type: ed25519, options: ED25519KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  81. def generateKeyPair(type: ec, options: ECKeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
    Annotations
    @inline()
  82. def generateKeyPair(type: ec, options: ECKeyPairKeyObjectOptions, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  83. def generateKeyPair(type: dsa, options: DSAKeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
    Annotations
    @inline()
  84. def generateKeyPair(type: dsa, options: DSAKeyPairKeyObjectOptions, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  85. def generateKeyPairSync(type: x448, options: X448KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  86. def generateKeyPairSync(type: x25519, options: X25519KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  87. def generateKeyPairSync(type: rsa, options: RSAKeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  88. def generateKeyPairSync(type: ed448, options: ED448KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  89. def generateKeyPairSync(type: ed25519, options: ED25519KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  90. def generateKeyPairSync(type: ec, options: ECKeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  91. def generateKeyPairSync(type: dsa, options: DSAKeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  92. def generateKeyPairSync_dsa(type: dsa, options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  93. def generateKeyPairSync_ec(type: ec, options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  94. def generateKeyPairSync_ed25519(type: ed25519, options: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  95. def generateKeyPairSync_ed25519(type: ed25519): KeyPairKeyObjectResult
    Annotations
    @inline()
  96. def generateKeyPairSync_ed448(type: ed448, options: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  97. def generateKeyPairSync_ed448(type: ed448): KeyPairKeyObjectResult
    Annotations
    @inline()
  98. def generateKeyPairSync_rsa(type: rsa, options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  99. def generateKeyPairSync_x25519(type: x25519, options: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  100. def generateKeyPairSync_x25519(type: x25519): KeyPairKeyObjectResult
    Annotations
    @inline()
  101. def generateKeyPairSync_x448(type: x448, options: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  102. def generateKeyPairSync_x448(type: x448): KeyPairKeyObjectResult
    Annotations
    @inline()
  103. def generateKey_aes(type: aes, options: Length, callback: Function2[|[Error, Null], cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  104. def generateKey_hmac(type: hmac, options: Length, callback: Function2[|[Error, Null], cryptoMod.KeyObject, Unit]): Unit
    Annotations
    @inline()
  105. def generatePrime(size: Double, options: GeneratePrimeOptions, callback: Function2[|[Error, Null], |[ArrayBuffer, BigInt], Unit]): Unit
    Annotations
    @inline()
  106. def generatePrime(size: Double, options: GeneratePrimeOptionsBigInt, callback: Function2[|[Error, Null], BigInt, Unit]): Unit
    Annotations
    @inline()
  107. def generatePrime(size: Double, options: GeneratePrimeOptionsArrayBuffer, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit
    Annotations
    @inline()
  108. def generatePrime(size: Double, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit
    Annotations
    @inline()
  109. def generatePrimeSync(size: Double, options: GeneratePrimeOptionsBigInt): BigInt
    Annotations
    @inline()
  110. def generatePrimeSync(size: Double, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer
    Annotations
    @inline()
  111. def generatePrimeSync(size: Double, options: GeneratePrimeOptions): |[ArrayBuffer, BigInt]
    Annotations
    @inline()
  112. def generatePrimeSync(size: Double): ArrayBuffer
    Annotations
    @inline()
  113. def getCipherInfo(nameOrNid: Double, options: CipherInfoOptions): UndefOr[CipherInfo]
    Annotations
    @inline()
  114. def getCipherInfo(nameOrNid: Double): UndefOr[CipherInfo]
    Annotations
    @inline()
  115. def getCipherInfo(nameOrNid: java.lang.String, options: CipherInfoOptions): UndefOr[CipherInfo]
    Annotations
    @inline()
  116. def getCipherInfo(nameOrNid: java.lang.String): UndefOr[CipherInfo]

    Returns information about a given cipher.

    Returns information about a given cipher.

    Some ciphers accept variable length keys and initialization vectors. By default, the crypto.getCipherInfo() method will return the default values for these ciphers. To test if a given key length or iv length is acceptable for given cipher, use the keyLenth and ivLenth options. If the given values are unacceptable, undefined will be returned.

    nameOrNid

    The name or nid of the cipher to query.

    Annotations
    @inline()
  117. def getCiphers(): Array[java.lang.String]
    Annotations
    @inline()
  118. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  119. def getCurves(): Array[java.lang.String]
    Annotations
    @inline()
  120. def getDiffieHellman(group_name: java.lang.String): cryptoMod.DiffieHellman_
    Annotations
    @inline()
  121. def getFips(): |[1, 0]
    Annotations
    @inline()
  122. def getHashes(): Array[java.lang.String]
    Annotations
    @inline()
  123. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  124. def hkdf(digest: java.lang.String, key: cryptoMod.KeyObject, salt: BinaryLike, info: BinaryLike, keylen: Double, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit
    Annotations
    @inline()
  125. def hkdf(digest: java.lang.String, key: BinaryLike, salt: BinaryLike, info: BinaryLike, keylen: Double, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit

    HKDF is a simple key derivation function defined in RFC 5869.

    HKDF is a simple key derivation function defined in RFC 5869. The given key, salt and info are used with the digest to derive a key of keylen bytes.

    The supplied callback function is called with two arguments: err and derivedKey. If an errors occurs while deriving the key, err will be set; otherwise err will be null. The successfully generated derivedKey will be passed to the callback as an ArrayBuffer. An error will be thrown if any of the input aguments specify invalid values or types.

    Annotations
    @inline()
  126. def hkdfSync(digest: java.lang.String, key: cryptoMod.KeyObject, salt: BinaryLike, info: BinaryLike, keylen: Double): ArrayBuffer
    Annotations
    @inline()
  127. def hkdfSync(digest: java.lang.String, key: BinaryLike, salt: BinaryLike, info: BinaryLike, keylen: Double): ArrayBuffer

    Provides a synchronous HKDF key derivation function as defined in RFC 5869.

    Provides a synchronous HKDF key derivation function as defined in RFC 5869. The given key, salt and info are used with the digest to derive a key of keylen bytes.

    The successfully generated derivedKey will be returned as an ArrayBuffer. An error will be thrown if any of the input aguments specify invalid values or types, or if the derived key cannot be generated.

    Annotations
    @inline()
  128. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  129. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  130. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  131. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  132. def pbkdf2(password: BinaryLike, salt: BinaryLike, iterations: Double, keylen: Double, digest: java.lang.String, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  133. def pbkdf2Sync(password: BinaryLike, salt: BinaryLike, iterations: Double, keylen: Double, digest: java.lang.String): Buffer
    Annotations
    @inline()
  134. def privateDecrypt(private_key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  135. def privateDecrypt(private_key: KeyLike, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  136. def privateEncrypt(private_key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  137. def privateEncrypt(private_key: KeyLike, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  138. def pseudoRandomBytes(size: Double, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  139. def pseudoRandomBytes(size: Double): Buffer
    Annotations
    @inline()
  140. def publicDecrypt(key: RsaPublicKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  141. def publicDecrypt(key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  142. def publicDecrypt(key: KeyLike, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  143. def publicEncrypt(key: RsaPublicKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  144. def publicEncrypt(key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  145. def publicEncrypt(key: KeyLike, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  146. def randomBytes(size: Double, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  147. def randomBytes(size: Double): Buffer
    Annotations
    @inline()
  148. def randomFill(buffer: Uint8ClampedArray, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint8ClampedArray, Unit]): Unit
    Annotations
    @inline()
  149. def randomFill(buffer: Uint8ClampedArray, offset: Double, callback: Function2[|[Error, Null], Uint8ClampedArray, Unit]): Unit
    Annotations
    @inline()
  150. def randomFill(buffer: Uint8ClampedArray, callback: Function2[|[Error, Null], Uint8ClampedArray, Unit]): Unit
    Annotations
    @inline()
  151. def randomFill(buffer: Uint8Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint8Array, Unit]): Unit
    Annotations
    @inline()
  152. def randomFill(buffer: Uint8Array, offset: Double, callback: Function2[|[Error, Null], Uint8Array, Unit]): Unit
    Annotations
    @inline()
  153. def randomFill(buffer: Uint8Array, callback: Function2[|[Error, Null], Uint8Array, Unit]): Unit
    Annotations
    @inline()
  154. def randomFill(buffer: Uint32Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint32Array, Unit]): Unit
    Annotations
    @inline()
  155. def randomFill(buffer: Uint32Array, offset: Double, callback: Function2[|[Error, Null], Uint32Array, Unit]): Unit
    Annotations
    @inline()
  156. def randomFill(buffer: Uint32Array, callback: Function2[|[Error, Null], Uint32Array, Unit]): Unit
    Annotations
    @inline()
  157. def randomFill(buffer: Uint16Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint16Array, Unit]): Unit
    Annotations
    @inline()
  158. def randomFill(buffer: Uint16Array, offset: Double, callback: Function2[|[Error, Null], Uint16Array, Unit]): Unit
    Annotations
    @inline()
  159. def randomFill(buffer: Uint16Array, callback: Function2[|[Error, Null], Uint16Array, Unit]): Unit
    Annotations
    @inline()
  160. def randomFill(buffer: Int8Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Int8Array, Unit]): Unit
    Annotations
    @inline()
  161. def randomFill(buffer: Int8Array, offset: Double, callback: Function2[|[Error, Null], Int8Array, Unit]): Unit
    Annotations
    @inline()
  162. def randomFill(buffer: Int8Array, callback: Function2[|[Error, Null], Int8Array, Unit]): Unit
    Annotations
    @inline()
  163. def randomFill(buffer: Int32Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Int32Array, Unit]): Unit
    Annotations
    @inline()
  164. def randomFill(buffer: Int32Array, offset: Double, callback: Function2[|[Error, Null], Int32Array, Unit]): Unit
    Annotations
    @inline()
  165. def randomFill(buffer: Int32Array, callback: Function2[|[Error, Null], Int32Array, Unit]): Unit
    Annotations
    @inline()
  166. def randomFill(buffer: Int16Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Int16Array, Unit]): Unit
    Annotations
    @inline()
  167. def randomFill(buffer: Int16Array, offset: Double, callback: Function2[|[Error, Null], Int16Array, Unit]): Unit
    Annotations
    @inline()
  168. def randomFill(buffer: Int16Array, callback: Function2[|[Error, Null], Int16Array, Unit]): Unit
    Annotations
    @inline()
  169. def randomFill(buffer: Float64Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Float64Array, Unit]): Unit
    Annotations
    @inline()
  170. def randomFill(buffer: Float64Array, offset: Double, callback: Function2[|[Error, Null], Float64Array, Unit]): Unit
    Annotations
    @inline()
  171. def randomFill(buffer: Float64Array, callback: Function2[|[Error, Null], Float64Array, Unit]): Unit
    Annotations
    @inline()
  172. def randomFill(buffer: Float32Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Float32Array, Unit]): Unit
    Annotations
    @inline()
  173. def randomFill(buffer: Float32Array, offset: Double, callback: Function2[|[Error, Null], Float32Array, Unit]): Unit
    Annotations
    @inline()
  174. def randomFill(buffer: Float32Array, callback: Function2[|[Error, Null], Float32Array, Unit]): Unit
    Annotations
    @inline()
  175. def randomFill(buffer: DataView, offset: Double, size: Double, callback: Function2[|[Error, Null], DataView, Unit]): Unit
    Annotations
    @inline()
  176. def randomFill(buffer: DataView, offset: Double, callback: Function2[|[Error, Null], DataView, Unit]): Unit
    Annotations
    @inline()
  177. def randomFill(buffer: DataView, callback: Function2[|[Error, Null], DataView, Unit]): Unit
    Annotations
    @inline()
  178. def randomFill(buffer: BigUint64Array, offset: Double, size: Double, callback: Function2[|[Error, Null], BigUint64Array, Unit]): Unit
    Annotations
    @inline()
  179. def randomFill(buffer: BigUint64Array, offset: Double, callback: Function2[|[Error, Null], BigUint64Array, Unit]): Unit
    Annotations
    @inline()
  180. def randomFill(buffer: BigUint64Array, callback: Function2[|[Error, Null], BigUint64Array, Unit]): Unit
    Annotations
    @inline()
  181. def randomFill(buffer: BigInt64Array, offset: Double, size: Double, callback: Function2[|[Error, Null], BigInt64Array, Unit]): Unit
    Annotations
    @inline()
  182. def randomFill(buffer: BigInt64Array, offset: Double, callback: Function2[|[Error, Null], BigInt64Array, Unit]): Unit
    Annotations
    @inline()
  183. def randomFill(buffer: BigInt64Array, callback: Function2[|[Error, Null], BigInt64Array, Unit]): Unit
    Annotations
    @inline()
  184. def randomFillSync(buffer: Uint8ClampedArray, offset: Unit, size: Double): Uint8ClampedArray
    Annotations
    @inline()
  185. def randomFillSync(buffer: Uint8ClampedArray, offset: Double, size: Double): Uint8ClampedArray
    Annotations
    @inline()
  186. def randomFillSync(buffer: Uint8ClampedArray, offset: Double): Uint8ClampedArray
    Annotations
    @inline()
  187. def randomFillSync(buffer: Uint8ClampedArray): Uint8ClampedArray
    Annotations
    @inline()
  188. def randomFillSync(buffer: Uint8Array, offset: Unit, size: Double): Uint8Array
    Annotations
    @inline()
  189. def randomFillSync(buffer: Uint8Array, offset: Double, size: Double): Uint8Array
    Annotations
    @inline()
  190. def randomFillSync(buffer: Uint8Array, offset: Double): Uint8Array
    Annotations
    @inline()
  191. def randomFillSync(buffer: Uint8Array): Uint8Array
    Annotations
    @inline()
  192. def randomFillSync(buffer: Uint32Array, offset: Unit, size: Double): Uint32Array
    Annotations
    @inline()
  193. def randomFillSync(buffer: Uint32Array, offset: Double, size: Double): Uint32Array
    Annotations
    @inline()
  194. def randomFillSync(buffer: Uint32Array, offset: Double): Uint32Array
    Annotations
    @inline()
  195. def randomFillSync(buffer: Uint32Array): Uint32Array
    Annotations
    @inline()
  196. def randomFillSync(buffer: Uint16Array, offset: Unit, size: Double): Uint16Array
    Annotations
    @inline()
  197. def randomFillSync(buffer: Uint16Array, offset: Double, size: Double): Uint16Array
    Annotations
    @inline()
  198. def randomFillSync(buffer: Uint16Array, offset: Double): Uint16Array
    Annotations
    @inline()
  199. def randomFillSync(buffer: Uint16Array): Uint16Array
    Annotations
    @inline()
  200. def randomFillSync(buffer: Int8Array, offset: Unit, size: Double): Int8Array
    Annotations
    @inline()
  201. def randomFillSync(buffer: Int8Array, offset: Double, size: Double): Int8Array
    Annotations
    @inline()
  202. def randomFillSync(buffer: Int8Array, offset: Double): Int8Array
    Annotations
    @inline()
  203. def randomFillSync(buffer: Int8Array): Int8Array
    Annotations
    @inline()
  204. def randomFillSync(buffer: Int32Array, offset: Unit, size: Double): Int32Array
    Annotations
    @inline()
  205. def randomFillSync(buffer: Int32Array, offset: Double, size: Double): Int32Array
    Annotations
    @inline()
  206. def randomFillSync(buffer: Int32Array, offset: Double): Int32Array
    Annotations
    @inline()
  207. def randomFillSync(buffer: Int32Array): Int32Array
    Annotations
    @inline()
  208. def randomFillSync(buffer: Int16Array, offset: Unit, size: Double): Int16Array
    Annotations
    @inline()
  209. def randomFillSync(buffer: Int16Array, offset: Double, size: Double): Int16Array
    Annotations
    @inline()
  210. def randomFillSync(buffer: Int16Array, offset: Double): Int16Array
    Annotations
    @inline()
  211. def randomFillSync(buffer: Int16Array): Int16Array
    Annotations
    @inline()
  212. def randomFillSync(buffer: Float64Array, offset: Unit, size: Double): Float64Array
    Annotations
    @inline()
  213. def randomFillSync(buffer: Float64Array, offset: Double, size: Double): Float64Array
    Annotations
    @inline()
  214. def randomFillSync(buffer: Float64Array, offset: Double): Float64Array
    Annotations
    @inline()
  215. def randomFillSync(buffer: Float64Array): Float64Array
    Annotations
    @inline()
  216. def randomFillSync(buffer: Float32Array, offset: Unit, size: Double): Float32Array
    Annotations
    @inline()
  217. def randomFillSync(buffer: Float32Array, offset: Double, size: Double): Float32Array
    Annotations
    @inline()
  218. def randomFillSync(buffer: Float32Array, offset: Double): Float32Array
    Annotations
    @inline()
  219. def randomFillSync(buffer: Float32Array): Float32Array
    Annotations
    @inline()
  220. def randomFillSync(buffer: DataView, offset: Unit, size: Double): DataView
    Annotations
    @inline()
  221. def randomFillSync(buffer: DataView, offset: Double, size: Double): DataView
    Annotations
    @inline()
  222. def randomFillSync(buffer: DataView, offset: Double): DataView
    Annotations
    @inline()
  223. def randomFillSync(buffer: DataView): DataView
    Annotations
    @inline()
  224. def randomFillSync(buffer: BigUint64Array, offset: Unit, size: Double): BigUint64Array
    Annotations
    @inline()
  225. def randomFillSync(buffer: BigUint64Array, offset: Double, size: Double): BigUint64Array
    Annotations
    @inline()
  226. def randomFillSync(buffer: BigUint64Array, offset: Double): BigUint64Array
    Annotations
    @inline()
  227. def randomFillSync(buffer: BigUint64Array): BigUint64Array
    Annotations
    @inline()
  228. def randomFillSync(buffer: BigInt64Array, offset: Unit, size: Double): BigInt64Array
    Annotations
    @inline()
  229. def randomFillSync(buffer: BigInt64Array, offset: Double, size: Double): BigInt64Array
    Annotations
    @inline()
  230. def randomFillSync(buffer: BigInt64Array, offset: Double): BigInt64Array
    Annotations
    @inline()
  231. def randomFillSync(buffer: BigInt64Array): BigInt64Array
    Annotations
    @inline()
  232. def randomInt(min: Double, max: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
    Annotations
    @inline()
  233. def randomInt(min: Double, max: Double): Double
    Annotations
    @inline()
  234. def randomInt(max: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
    Annotations
    @inline()
  235. def randomInt(max: Double): Double
    Annotations
    @inline()
  236. def randomUUID(options: RandomUUIDOptions): java.lang.String
    Annotations
    @inline()
  237. def randomUUID(): java.lang.String
    Annotations
    @inline()
  238. def scrypt(password: BinaryLike, salt: BinaryLike, keylen: Double, options: ScryptOptions, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  239. def scrypt(password: BinaryLike, salt: BinaryLike, keylen: Double, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  240. def scryptSync(password: BinaryLike, salt: BinaryLike, keylen: Double, options: ScryptOptions): Buffer
    Annotations
    @inline()
  241. def scryptSync(password: BinaryLike, salt: BinaryLike, keylen: Double): Buffer
    Annotations
    @inline()
  242. def secureHeapUsed(): SecureHeapUsage
    Annotations
    @inline()
  243. def sign(algorithm: Unit, data: ArrayBufferView, key: SignPrivateKeyInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  244. def sign(algorithm: Unit, data: ArrayBufferView, key: SignPrivateKeyInput): Buffer
    Annotations
    @inline()
  245. def sign(algorithm: Unit, data: ArrayBufferView, key: SignKeyObjectInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  246. def sign(algorithm: Unit, data: ArrayBufferView, key: SignKeyObjectInput): Buffer
    Annotations
    @inline()
  247. def sign(algorithm: Unit, data: ArrayBufferView, key: KeyLike, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  248. def sign(algorithm: Unit, data: ArrayBufferView, key: KeyLike): Buffer
    Annotations
    @inline()
  249. def sign(algorithm: Null, data: ArrayBufferView, key: SignPrivateKeyInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  250. def sign(algorithm: Null, data: ArrayBufferView, key: SignPrivateKeyInput): Buffer
    Annotations
    @inline()
  251. def sign(algorithm: Null, data: ArrayBufferView, key: SignKeyObjectInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  252. def sign(algorithm: Null, data: ArrayBufferView, key: SignKeyObjectInput): Buffer
    Annotations
    @inline()
  253. def sign(algorithm: Null, data: ArrayBufferView, key: KeyLike, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  254. def sign(algorithm: Null, data: ArrayBufferView, key: KeyLike): Buffer
    Annotations
    @inline()
  255. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignPrivateKeyInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  256. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignPrivateKeyInput): Buffer
    Annotations
    @inline()
  257. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignKeyObjectInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  258. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignKeyObjectInput): Buffer
    Annotations
    @inline()
  259. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: KeyLike, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  260. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: KeyLike): Buffer

    Calculates and returns the signature for data using the given private key and algorithm.

    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().

    Annotations
    @inline()
  261. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  262. def timingSafeEqual(a: ArrayBufferView, b: ArrayBufferView): Boolean
    Annotations
    @inline()
  263. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  264. def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  265. def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  266. def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  267. def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  268. def verify(algorithm: Unit, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  269. def verify(algorithm: Unit, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  270. def verify(algorithm: Null, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  271. def verify(algorithm: Null, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  272. def verify(algorithm: Null, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  273. def verify(algorithm: Null, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  274. def verify(algorithm: Null, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  275. def verify(algorithm: Null, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  276. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  277. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  278. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  279. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  280. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  281. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView): Boolean

    Calculates and returns the signature for data using the given private key and algorithm.

    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().

    Annotations
    @inline()
  282. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  283. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  284. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  285. object Certificate
  286. object ECDH
  287. object constants

Deprecated Value Members

  1. val DEFAULT_ENCODING: BufferEncoding

    Annotations
    @JSImport("node:crypto", "DEFAULT_ENCODING") @native()
    Deprecated

    since v10.0.0

  2. def createCipher(algorithm: java.lang.String, password: BinaryLike): cryptoMod.Cipher

    Annotations
    @inline()
    Deprecated

    since v10.0.0 use createCipheriv()

  3. def createCipher(algorithm: CipherGCMTypes, password: BinaryLike): CipherGCM

    Annotations
    @inline()
    Deprecated

    since v10.0.0 use createCipheriv()

  4. def createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM

    Annotations
    @inline()
    Deprecated

    since v10.0.0 use createCipheriv()

  5. def createDecipher(algorithm: java.lang.String, password: BinaryLike): cryptoMod.Decipher

    Annotations
    @inline()
    Deprecated

    since v10.0.0 use createDecipheriv()

  6. def createDecipher(algorithm: CipherGCMTypes, password: BinaryLike): DecipherGCM

    Annotations
    @inline()
    Deprecated

    since v10.0.0 use createDecipheriv()

  7. def createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM

    Annotations
    @inline()
    Deprecated

    since v10.0.0 use createDecipheriv()

  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  9. val fips: Boolean

    Annotations
    @JSImport("node:crypto", "fips") @native()
    Deprecated

    since v10.0.0

Inherited from AnyRef

Inherited from Any

Ungrouped