Packages

package cryptoMod

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

Type Members

  1. trait AsymmetricKeyDetails extends Object with StObject
    Annotations
    @JSType() @native()
  2. trait BasePrivateKeyEncodingOptions[T] extends Object with StObject
    Annotations
    @JSType() @native()
  3. type BinaryLike = |[java.lang.String, ArrayBufferView]
  4. trait BinaryToTextEncoding extends Object with StObject
    Annotations
    @JSType()
  5. trait Certificate extends Object with StObject
    Annotations
    @JSType() @native()
  6. class CertificateCls extends Object with StObject with Certificate
    Annotations
    @JSType() @JSImport("crypto", "Certificate") @native()
  7. trait CharacterEncoding extends Object with StObject
    Annotations
    @JSType()
  8. trait CheckPrimeOptions extends Object with StObject
    Annotations
    @JSType() @native()
  9. class Cipher extends Object with StObject
    Annotations
    @JSType() @JSImport("crypto", "Cipher") @native()
  10. trait CipherCCM extends Object with StObject
    Annotations
    @JSType() @native()
  11. trait CipherCCMOptions extends Object with StObject with TransformOptions
    Annotations
    @JSType() @native()
  12. trait CipherCCMTypes extends Object with StObject
    Annotations
    @JSType()
  13. trait CipherGCM extends Object with StObject
    Annotations
    @JSType() @native()
  14. trait CipherGCMOptions extends Object with StObject with TransformOptions
    Annotations
    @JSType() @native()
  15. trait CipherGCMTypes extends Object with StObject
    Annotations
    @JSType()
  16. trait CipherInfo extends Object with StObject
    Annotations
    @JSType() @native()
  17. trait CipherInfoOptions extends Object with StObject
    Annotations
    @JSType() @native()
  18. type CipherKey = |[BinaryLike, KeyObject]
  19. trait CipherMode extends Object with StObject
    Annotations
    @JSType()
  20. trait DSAEncoding extends Object with StObject
    Annotations
    @JSType()
  21. trait DSAKeyPairKeyObjectOptions extends Object with StObject
    Annotations
    @JSType() @native()
  22. trait DSAKeyPairOptions[PubF, PrivF] extends Object with StObject
    Annotations
    @JSType() @native()
  23. class Decipher extends Object with StObject
    Annotations
    @JSType() @JSImport("crypto", "Decipher") @native()
  24. trait DecipherCCM extends Object with StObject
    Annotations
    @JSType() @native()
  25. trait DecipherGCM extends Object with StObject
    Annotations
    @JSType() @native()
  26. class DiffieHellman_ extends Object with StObject
    Annotations
    @JSType() @JSImport("crypto", "DiffieHellman") @native()
  27. class ECDH extends Object with StObject
    Annotations
    @JSType() @JSImport("crypto", "ECDH") @native()
  28. trait ECDHKeyFormat extends Object with StObject
    Annotations
    @JSType()
  29. trait ECKeyPairKeyObjectOptions extends Object with StObject
    Annotations
    @JSType() @native()
  30. trait ECKeyPairOptions[PubF, PrivF] extends Object with StObject
    Annotations
    @JSType() @native()
  31. trait ED25519KeyPairKeyObjectOptions extends Object with StObject
    Annotations
    @JSType() @native()
  32. trait ED25519KeyPairOptions[PubF, PrivF] extends Object with StObject
    Annotations
    @JSType() @native()
  33. trait ED448KeyPairKeyObjectOptions extends Object with StObject
    Annotations
    @JSType() @native()
  34. trait ED448KeyPairOptions[PubF, PrivF] extends Object with StObject
    Annotations
    @JSType() @native()
  35. trait Encoding extends Object with StObject
    Annotations
    @JSType()
  36. trait GeneratePrimeOptions extends Object with StObject
    Annotations
    @JSType() @native()
  37. trait GeneratePrimeOptionsArrayBuffer extends Object with StObject with GeneratePrimeOptions
    Annotations
    @JSType() @native()
  38. trait GeneratePrimeOptionsBigInt extends Object with StObject with GeneratePrimeOptions
    Annotations
    @JSType() @native()
  39. class Hash extends Object with StObject
    Annotations
    @JSType() @JSImport("crypto", "Hash") @native()
  40. trait HashOptions extends Object with StObject with TransformOptions
    Annotations
    @JSType() @native()
  41. class Hmac extends Object with StObject
    Annotations
    @JSType() @JSImport("crypto", "Hmac") @native()
  42. trait JsonWebKey extends Object with StObject with StringDictionary[Any]
    Annotations
    @JSType() @native()
  43. trait JsonWebKeyInput extends Object with StObject
    Annotations
    @JSType() @native()
  44. trait JwkKeyExportOptions extends Object with StObject
    Annotations
    @JSType() @native()
  45. trait KeyExportOptions[T] extends Object with StObject
    Annotations
    @JSType() @native()
  46. trait KeyFormat extends Object with StObject
    Annotations
    @JSType()
  47. type KeyLike = |[_KeyLike, java.lang.String]
  48. class KeyObject extends Object with StObject with _KeyLike
    Annotations
    @JSType() @JSImport("crypto", "KeyObject") @native()
  49. trait KeyObjectType extends Object with StObject
    Annotations
    @JSType()
  50. trait KeyPairKeyObjectResult extends Object with StObject
    Annotations
    @JSType() @native()
  51. trait KeyPairSyncResult[T1, T2] extends Object with StObject
    Annotations
    @JSType() @native()
  52. trait KeyType extends Object with StObject
    Annotations
    @JSType()
  53. type LargeNumberLike = |[|[|[ArrayBufferView, SharedArrayBuffer], ArrayBuffer], BigInt]
  54. trait LegacyCharacterEncoding extends Object with StObject
    Annotations
    @JSType()
  55. trait PrivateKeyInput extends Object with StObject
    Annotations
    @JSType() @native()
  56. trait PublicKeyInput extends Object with StObject
    Annotations
    @JSType() @native()
  57. trait RSAKeyPairKeyObjectOptions extends Object with StObject
    Annotations
    @JSType() @native()
  58. trait RSAKeyPairOptions[PubF, PrivF] extends Object with StObject
    Annotations
    @JSType() @native()
  59. trait RandomUUIDOptions extends Object with StObject
    Annotations
    @JSType() @native()
  60. trait RsaPrivateKey extends Object with StObject
    Annotations
    @JSType() @native()
  61. trait RsaPublicKey extends Object with StObject
    Annotations
    @JSType() @native()
  62. trait ScryptOptions extends Object with StObject
    Annotations
    @JSType() @native()
  63. trait SecureHeapUsage extends Object with StObject
    Annotations
    @JSType() @native()
  64. trait SignKeyObjectInput extends Object with StObject with SigningOptions
    Annotations
    @JSType() @native()
  65. trait SignPrivateKeyInput extends Object with StObject with PrivateKeyInput with SigningOptions
    Annotations
    @JSType() @native()
  66. class Signer extends Object with StObject
    Annotations
    @JSType() @JSImport("crypto", "Signer") @native()
  67. trait SigningOptions extends Object with StObject
    Annotations
    @JSType() @native()
  68. trait VerifyKeyObjectInput extends Object with StObject with SigningOptions
    Annotations
    @JSType() @native()
  69. trait VerifyPublicKeyInput extends Object with StObject with PublicKeyInput with SigningOptions
    Annotations
    @JSType() @native()
  70. class Verify_ extends Object with StObject
    Annotations
    @JSType() @JSImport("crypto", "Verify") @native()
  71. trait X25519KeyPairKeyObjectOptions extends Object with StObject
    Annotations
    @JSType() @native()
  72. trait X25519KeyPairOptions[PubF, PrivF] extends Object with StObject
    Annotations
    @JSType() @native()
  73. trait X448KeyPairKeyObjectOptions extends Object with StObject
    Annotations
    @JSType() @native()
  74. trait X448KeyPairOptions[PubF, PrivF] extends Object with StObject
    Annotations
    @JSType() @native()
  75. class X509Certificate extends Object with StObject with _TransferListItem
    Annotations
    @JSType() @JSImport("crypto", "X509Certificate") @native()
  76. trait X509CheckOptions extends Object with StObject
    Annotations
    @JSType() @native()
  77. trait _KeyLike extends Object with StObject
    Annotations
    @JSType()

Value Members

  1. def checkPrime(value: LargeNumberLike, options: CheckPrimeOptions, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  2. 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()
  3. def checkPrimeSync(value: LargeNumberLike, options: CheckPrimeOptions): Boolean
    Annotations
    @inline()
  4. def checkPrimeSync(value: LargeNumberLike): Boolean

    Checks the primality of the candidate.

    Checks the primality of the candidate.

    Annotations
    @inline()
  5. def createCipher(algorithm: java.lang.String, password: BinaryLike, options: TransformOptions): Cipher
    Annotations
    @inline()
  6. def createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options: CipherGCMOptions): CipherGCM
    Annotations
    @inline()
  7. def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: Null, options: TransformOptions): Cipher
    Annotations
    @inline()
  8. def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike, options: TransformOptions): Cipher
    Annotations
    @inline()
  9. def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike): Cipher
    Annotations
    @inline()
  10. def createCipheriv(algorithm: java.lang.String, key: CipherKey): Cipher
    Annotations
    @inline()
  11. def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: Null, options: CipherGCMOptions): CipherGCM
    Annotations
    @inline()
  12. def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options: CipherGCMOptions): CipherGCM
    Annotations
    @inline()
  13. def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike): CipherGCM
    Annotations
    @inline()
  14. def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey): CipherGCM
    Annotations
    @inline()
  15. def createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: Null, options: CipherCCMOptions): CipherCCM
    Annotations
    @inline()
  16. def createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): CipherCCM
    Annotations
    @inline()
  17. def createDecipher(algorithm: java.lang.String, password: BinaryLike, options: TransformOptions): Decipher
    Annotations
    @inline()
  18. def createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options: CipherGCMOptions): DecipherGCM
    Annotations
    @inline()
  19. def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: Null, options: TransformOptions): Decipher
    Annotations
    @inline()
  20. def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike, options: TransformOptions): Decipher
    Annotations
    @inline()
  21. def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike): Decipher
    Annotations
    @inline()
  22. def createDecipheriv(algorithm: java.lang.String, key: CipherKey): Decipher
    Annotations
    @inline()
  23. def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: Null, options: CipherGCMOptions): DecipherGCM
    Annotations
    @inline()
  24. def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options: CipherGCMOptions): DecipherGCM
    Annotations
    @inline()
  25. def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike): DecipherGCM
    Annotations
    @inline()
  26. def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey): DecipherGCM
    Annotations
    @inline()
  27. def createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: Null, options: CipherCCMOptions): DecipherCCM
    Annotations
    @inline()
  28. def createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): DecipherCCM
    Annotations
    @inline()
  29. def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: Double): DiffieHellman_
    Annotations
    @inline()
  30. def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: java.lang.String, generator_encoding: BinaryToTextEncoding): DiffieHellman_
    Annotations
    @inline()
  31. def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: ArrayBufferView): DiffieHellman_
    Annotations
    @inline()
  32. def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding): DiffieHellman_
    Annotations
    @inline()
  33. def createDiffieHellman(prime: ArrayBufferView): DiffieHellman_
    Annotations
    @inline()
  34. def createDiffieHellman(prime_length: Double, generator: Double): DiffieHellman_
    Annotations
    @inline()
  35. def createDiffieHellman(prime_length: Double, generator: ArrayBufferView): DiffieHellman_
    Annotations
    @inline()
  36. def createDiffieHellman(prime_length: Double): DiffieHellman_
    Annotations
    @inline()
  37. def createECDH(curve_name: java.lang.String): ECDH
    Annotations
    @inline()
  38. def createHash(algorithm: java.lang.String, options: HashOptions): Hash
    Annotations
    @inline()
  39. def createHash(algorithm: java.lang.String): Hash
    Annotations
    @inline()
  40. def createHmac(algorithm: java.lang.String, key: KeyObject, options: TransformOptions): Hmac
    Annotations
    @inline()
  41. def createHmac(algorithm: java.lang.String, key: KeyObject): Hmac
    Annotations
    @inline()
  42. def createHmac(algorithm: java.lang.String, key: BinaryLike, options: TransformOptions): Hmac
    Annotations
    @inline()
  43. def createHmac(algorithm: java.lang.String, key: BinaryLike): Hmac
    Annotations
    @inline()
  44. def createPrivateKey(key: java.lang.String): KeyObject
    Annotations
    @inline()
  45. def createPrivateKey(key: PrivateKeyInput): KeyObject
    Annotations
    @inline()
  46. def createPrivateKey(key: JsonWebKeyInput): KeyObject
    Annotations
    @inline()
  47. def createPrivateKey(key: Buffer): KeyObject
    Annotations
    @inline()
  48. def createPublicKey(key: java.lang.String): KeyObject
    Annotations
    @inline()
  49. def createPublicKey(key: PublicKeyInput): KeyObject
    Annotations
    @inline()
  50. def createPublicKey(key: KeyObject): KeyObject
    Annotations
    @inline()
  51. def createPublicKey(key: JsonWebKeyInput): KeyObject
    Annotations
    @inline()
  52. def createPublicKey(key: Buffer): KeyObject
    Annotations
    @inline()
  53. def createSecretKey(key: ArrayBufferView): KeyObject
    Annotations
    @inline()
  54. def createSign(algorithm: java.lang.String, options: WritableOptions): Signer
    Annotations
    @inline()
  55. def createSign(algorithm: java.lang.String): Signer
    Annotations
    @inline()
  56. def createVerify(algorithm: java.lang.String, options: WritableOptions): Verify_
    Annotations
    @inline()
  57. def createVerify(algorithm: java.lang.String): Verify_
    Annotations
    @inline()
  58. 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()
  59. def generateKeyPair(type: x448, options: Unit, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  60. 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()
  61. def generateKeyPair(type: x448, options: X448KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  62. def generateKeyPair(type: x25519, options: Unit, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  63. 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()
  64. def generateKeyPair(type: x25519, options: X25519KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  65. 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()
  66. def generateKeyPair(type: rsa, options: RSAKeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  67. def generateKeyPair(type: ed448, options: Unit, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  68. 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()
  69. def generateKeyPair(type: ed448, options: ED448KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  70. def generateKeyPair(type: ed25519, options: Unit, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  71. 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()
  72. def generateKeyPair(type: ed25519, options: ED25519KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  73. 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()
  74. def generateKeyPair(type: ec, options: ECKeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  75. 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()
  76. def generateKeyPair(type: dsa, options: DSAKeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
    Annotations
    @inline()
  77. def generateKeyPairSync(type: x448, options: X448KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  78. def generateKeyPairSync(type: x25519, options: X25519KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  79. def generateKeyPairSync(type: rsa, options: RSAKeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  80. def generateKeyPairSync(type: ed448, options: ED448KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  81. def generateKeyPairSync(type: ed25519, options: ED25519KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  82. def generateKeyPairSync(type: ec, options: ECKeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  83. def generateKeyPairSync(type: dsa, options: DSAKeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
    Annotations
    @inline()
  84. def generateKeyPairSync_dsa(type: dsa, options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  85. def generateKeyPairSync_ec(type: ec, options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  86. def generateKeyPairSync_ed25519(type: ed25519, options: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  87. def generateKeyPairSync_ed25519(type: ed25519): KeyPairKeyObjectResult
    Annotations
    @inline()
  88. def generateKeyPairSync_ed448(type: ed448, options: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  89. def generateKeyPairSync_ed448(type: ed448): KeyPairKeyObjectResult
    Annotations
    @inline()
  90. def generateKeyPairSync_rsa(type: rsa, options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  91. def generateKeyPairSync_x25519(type: x25519, options: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  92. def generateKeyPairSync_x25519(type: x25519): KeyPairKeyObjectResult
    Annotations
    @inline()
  93. def generateKeyPairSync_x448(type: x448, options: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult
    Annotations
    @inline()
  94. def generateKeyPairSync_x448(type: x448): KeyPairKeyObjectResult
    Annotations
    @inline()
  95. def generateKey_aes(type: aes, options: Length, callback: Function2[|[Error, Null], KeyObject, Unit]): Unit
    Annotations
    @inline()
  96. def generateKey_hmac(type: hmac, options: Length, callback: Function2[|[Error, Null], KeyObject, Unit]): Unit
    Annotations
    @inline()
  97. def generatePrime(size: Double, options: GeneratePrimeOptions, callback: Function2[|[Error, Null], |[ArrayBuffer, BigInt], Unit]): Unit
    Annotations
    @inline()
  98. def generatePrime(size: Double, options: GeneratePrimeOptionsBigInt, callback: Function2[|[Error, Null], BigInt, Unit]): Unit
    Annotations
    @inline()
  99. def generatePrime(size: Double, options: GeneratePrimeOptionsArrayBuffer, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit
    Annotations
    @inline()
  100. def generatePrime(size: Double, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit
    Annotations
    @inline()
  101. def generatePrimeSync(size: Double, options: GeneratePrimeOptionsBigInt): BigInt
    Annotations
    @inline()
  102. def generatePrimeSync(size: Double, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer
    Annotations
    @inline()
  103. def generatePrimeSync(size: Double, options: GeneratePrimeOptions): |[ArrayBuffer, BigInt]
    Annotations
    @inline()
  104. def generatePrimeSync(size: Double): ArrayBuffer
    Annotations
    @inline()
  105. def getCipherInfo(nameOrNid: Double, options: CipherInfoOptions): UndefOr[CipherInfo]
    Annotations
    @inline()
  106. def getCipherInfo(nameOrNid: Double): UndefOr[CipherInfo]
    Annotations
    @inline()
  107. def getCipherInfo(nameOrNid: java.lang.String, options: CipherInfoOptions): UndefOr[CipherInfo]
    Annotations
    @inline()
  108. 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()
  109. def getCiphers(): Array[java.lang.String]
    Annotations
    @inline()
  110. def getCurves(): Array[java.lang.String]
    Annotations
    @inline()
  111. def getDiffieHellman(group_name: java.lang.String): DiffieHellman_
    Annotations
    @inline()
  112. def getFips(): |[1, 0]
    Annotations
    @inline()
  113. def getHashes(): Array[java.lang.String]
    Annotations
    @inline()
  114. def hkdf(digest: java.lang.String, key: KeyObject, salt: BinaryLike, info: BinaryLike, keylen: Double, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit
    Annotations
    @inline()
  115. 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()
  116. def hkdfSync(digest: java.lang.String, key: KeyObject, salt: BinaryLike, info: BinaryLike, keylen: Double): ArrayBuffer
    Annotations
    @inline()
  117. 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()
  118. def pbkdf2(password: BinaryLike, salt: BinaryLike, iterations: Double, keylen: Double, digest: java.lang.String, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  119. def pbkdf2Sync(password: BinaryLike, salt: BinaryLike, iterations: Double, keylen: Double, digest: java.lang.String): Buffer
    Annotations
    @inline()
  120. def privateDecrypt(private_key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  121. def privateDecrypt(private_key: KeyLike, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  122. def privateEncrypt(private_key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  123. def privateEncrypt(private_key: KeyLike, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  124. def pseudoRandomBytes(size: Double, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  125. def pseudoRandomBytes(size: Double): Buffer
    Annotations
    @inline()
  126. def publicDecrypt(key: RsaPublicKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  127. def publicDecrypt(key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  128. def publicDecrypt(key: KeyLike, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  129. def publicEncrypt(key: RsaPublicKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  130. def publicEncrypt(key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  131. def publicEncrypt(key: KeyLike, buffer: ArrayBufferView): Buffer
    Annotations
    @inline()
  132. def randomBytes(size: Double, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  133. def randomBytes(size: Double): Buffer
    Annotations
    @inline()
  134. def randomFill(buffer: Uint8ClampedArray, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint8ClampedArray, Unit]): Unit
    Annotations
    @inline()
  135. def randomFill(buffer: Uint8ClampedArray, offset: Double, callback: Function2[|[Error, Null], Uint8ClampedArray, Unit]): Unit
    Annotations
    @inline()
  136. def randomFill(buffer: Uint8ClampedArray, callback: Function2[|[Error, Null], Uint8ClampedArray, Unit]): Unit
    Annotations
    @inline()
  137. def randomFill(buffer: Uint8Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint8Array, Unit]): Unit
    Annotations
    @inline()
  138. def randomFill(buffer: Uint8Array, offset: Double, callback: Function2[|[Error, Null], Uint8Array, Unit]): Unit
    Annotations
    @inline()
  139. def randomFill(buffer: Uint8Array, callback: Function2[|[Error, Null], Uint8Array, Unit]): Unit
    Annotations
    @inline()
  140. def randomFill(buffer: Uint32Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint32Array, Unit]): Unit
    Annotations
    @inline()
  141. def randomFill(buffer: Uint32Array, offset: Double, callback: Function2[|[Error, Null], Uint32Array, Unit]): Unit
    Annotations
    @inline()
  142. def randomFill(buffer: Uint32Array, callback: Function2[|[Error, Null], Uint32Array, Unit]): Unit
    Annotations
    @inline()
  143. def randomFill(buffer: Uint16Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint16Array, Unit]): Unit
    Annotations
    @inline()
  144. def randomFill(buffer: Uint16Array, offset: Double, callback: Function2[|[Error, Null], Uint16Array, Unit]): Unit
    Annotations
    @inline()
  145. def randomFill(buffer: Uint16Array, callback: Function2[|[Error, Null], Uint16Array, Unit]): Unit
    Annotations
    @inline()
  146. def randomFill(buffer: Int8Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Int8Array, Unit]): Unit
    Annotations
    @inline()
  147. def randomFill(buffer: Int8Array, offset: Double, callback: Function2[|[Error, Null], Int8Array, Unit]): Unit
    Annotations
    @inline()
  148. def randomFill(buffer: Int8Array, callback: Function2[|[Error, Null], Int8Array, Unit]): Unit
    Annotations
    @inline()
  149. def randomFill(buffer: Int32Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Int32Array, Unit]): Unit
    Annotations
    @inline()
  150. def randomFill(buffer: Int32Array, offset: Double, callback: Function2[|[Error, Null], Int32Array, Unit]): Unit
    Annotations
    @inline()
  151. def randomFill(buffer: Int32Array, callback: Function2[|[Error, Null], Int32Array, Unit]): Unit
    Annotations
    @inline()
  152. def randomFill(buffer: Int16Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Int16Array, Unit]): Unit
    Annotations
    @inline()
  153. def randomFill(buffer: Int16Array, offset: Double, callback: Function2[|[Error, Null], Int16Array, Unit]): Unit
    Annotations
    @inline()
  154. def randomFill(buffer: Int16Array, callback: Function2[|[Error, Null], Int16Array, Unit]): Unit
    Annotations
    @inline()
  155. def randomFill(buffer: Float64Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Float64Array, Unit]): Unit
    Annotations
    @inline()
  156. def randomFill(buffer: Float64Array, offset: Double, callback: Function2[|[Error, Null], Float64Array, Unit]): Unit
    Annotations
    @inline()
  157. def randomFill(buffer: Float64Array, callback: Function2[|[Error, Null], Float64Array, Unit]): Unit
    Annotations
    @inline()
  158. def randomFill(buffer: Float32Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Float32Array, Unit]): Unit
    Annotations
    @inline()
  159. def randomFill(buffer: Float32Array, offset: Double, callback: Function2[|[Error, Null], Float32Array, Unit]): Unit
    Annotations
    @inline()
  160. def randomFill(buffer: Float32Array, callback: Function2[|[Error, Null], Float32Array, Unit]): Unit
    Annotations
    @inline()
  161. def randomFill(buffer: DataView, offset: Double, size: Double, callback: Function2[|[Error, Null], DataView, Unit]): Unit
    Annotations
    @inline()
  162. def randomFill(buffer: DataView, offset: Double, callback: Function2[|[Error, Null], DataView, Unit]): Unit
    Annotations
    @inline()
  163. def randomFill(buffer: DataView, callback: Function2[|[Error, Null], DataView, Unit]): Unit
    Annotations
    @inline()
  164. def randomFill(buffer: BigUint64Array, offset: Double, size: Double, callback: Function2[|[Error, Null], BigUint64Array, Unit]): Unit
    Annotations
    @inline()
  165. def randomFill(buffer: BigUint64Array, offset: Double, callback: Function2[|[Error, Null], BigUint64Array, Unit]): Unit
    Annotations
    @inline()
  166. def randomFill(buffer: BigUint64Array, callback: Function2[|[Error, Null], BigUint64Array, Unit]): Unit
    Annotations
    @inline()
  167. def randomFill(buffer: BigInt64Array, offset: Double, size: Double, callback: Function2[|[Error, Null], BigInt64Array, Unit]): Unit
    Annotations
    @inline()
  168. def randomFill(buffer: BigInt64Array, offset: Double, callback: Function2[|[Error, Null], BigInt64Array, Unit]): Unit
    Annotations
    @inline()
  169. def randomFill(buffer: BigInt64Array, callback: Function2[|[Error, Null], BigInt64Array, Unit]): Unit
    Annotations
    @inline()
  170. def randomFillSync(buffer: Uint8ClampedArray, offset: Unit, size: Double): Uint8ClampedArray
    Annotations
    @inline()
  171. def randomFillSync(buffer: Uint8ClampedArray, offset: Double, size: Double): Uint8ClampedArray
    Annotations
    @inline()
  172. def randomFillSync(buffer: Uint8ClampedArray, offset: Double): Uint8ClampedArray
    Annotations
    @inline()
  173. def randomFillSync(buffer: Uint8ClampedArray): Uint8ClampedArray
    Annotations
    @inline()
  174. def randomFillSync(buffer: Uint8Array, offset: Unit, size: Double): Uint8Array
    Annotations
    @inline()
  175. def randomFillSync(buffer: Uint8Array, offset: Double, size: Double): Uint8Array
    Annotations
    @inline()
  176. def randomFillSync(buffer: Uint8Array, offset: Double): Uint8Array
    Annotations
    @inline()
  177. def randomFillSync(buffer: Uint8Array): Uint8Array
    Annotations
    @inline()
  178. def randomFillSync(buffer: Uint32Array, offset: Unit, size: Double): Uint32Array
    Annotations
    @inline()
  179. def randomFillSync(buffer: Uint32Array, offset: Double, size: Double): Uint32Array
    Annotations
    @inline()
  180. def randomFillSync(buffer: Uint32Array, offset: Double): Uint32Array
    Annotations
    @inline()
  181. def randomFillSync(buffer: Uint32Array): Uint32Array
    Annotations
    @inline()
  182. def randomFillSync(buffer: Uint16Array, offset: Unit, size: Double): Uint16Array
    Annotations
    @inline()
  183. def randomFillSync(buffer: Uint16Array, offset: Double, size: Double): Uint16Array
    Annotations
    @inline()
  184. def randomFillSync(buffer: Uint16Array, offset: Double): Uint16Array
    Annotations
    @inline()
  185. def randomFillSync(buffer: Uint16Array): Uint16Array
    Annotations
    @inline()
  186. def randomFillSync(buffer: Int8Array, offset: Unit, size: Double): Int8Array
    Annotations
    @inline()
  187. def randomFillSync(buffer: Int8Array, offset: Double, size: Double): Int8Array
    Annotations
    @inline()
  188. def randomFillSync(buffer: Int8Array, offset: Double): Int8Array
    Annotations
    @inline()
  189. def randomFillSync(buffer: Int8Array): Int8Array
    Annotations
    @inline()
  190. def randomFillSync(buffer: Int32Array, offset: Unit, size: Double): Int32Array
    Annotations
    @inline()
  191. def randomFillSync(buffer: Int32Array, offset: Double, size: Double): Int32Array
    Annotations
    @inline()
  192. def randomFillSync(buffer: Int32Array, offset: Double): Int32Array
    Annotations
    @inline()
  193. def randomFillSync(buffer: Int32Array): Int32Array
    Annotations
    @inline()
  194. def randomFillSync(buffer: Int16Array, offset: Unit, size: Double): Int16Array
    Annotations
    @inline()
  195. def randomFillSync(buffer: Int16Array, offset: Double, size: Double): Int16Array
    Annotations
    @inline()
  196. def randomFillSync(buffer: Int16Array, offset: Double): Int16Array
    Annotations
    @inline()
  197. def randomFillSync(buffer: Int16Array): Int16Array
    Annotations
    @inline()
  198. def randomFillSync(buffer: Float64Array, offset: Unit, size: Double): Float64Array
    Annotations
    @inline()
  199. def randomFillSync(buffer: Float64Array, offset: Double, size: Double): Float64Array
    Annotations
    @inline()
  200. def randomFillSync(buffer: Float64Array, offset: Double): Float64Array
    Annotations
    @inline()
  201. def randomFillSync(buffer: Float64Array): Float64Array
    Annotations
    @inline()
  202. def randomFillSync(buffer: Float32Array, offset: Unit, size: Double): Float32Array
    Annotations
    @inline()
  203. def randomFillSync(buffer: Float32Array, offset: Double, size: Double): Float32Array
    Annotations
    @inline()
  204. def randomFillSync(buffer: Float32Array, offset: Double): Float32Array
    Annotations
    @inline()
  205. def randomFillSync(buffer: Float32Array): Float32Array
    Annotations
    @inline()
  206. def randomFillSync(buffer: DataView, offset: Unit, size: Double): DataView
    Annotations
    @inline()
  207. def randomFillSync(buffer: DataView, offset: Double, size: Double): DataView
    Annotations
    @inline()
  208. def randomFillSync(buffer: DataView, offset: Double): DataView
    Annotations
    @inline()
  209. def randomFillSync(buffer: DataView): DataView
    Annotations
    @inline()
  210. def randomFillSync(buffer: BigUint64Array, offset: Unit, size: Double): BigUint64Array
    Annotations
    @inline()
  211. def randomFillSync(buffer: BigUint64Array, offset: Double, size: Double): BigUint64Array
    Annotations
    @inline()
  212. def randomFillSync(buffer: BigUint64Array, offset: Double): BigUint64Array
    Annotations
    @inline()
  213. def randomFillSync(buffer: BigUint64Array): BigUint64Array
    Annotations
    @inline()
  214. def randomFillSync(buffer: BigInt64Array, offset: Unit, size: Double): BigInt64Array
    Annotations
    @inline()
  215. def randomFillSync(buffer: BigInt64Array, offset: Double, size: Double): BigInt64Array
    Annotations
    @inline()
  216. def randomFillSync(buffer: BigInt64Array, offset: Double): BigInt64Array
    Annotations
    @inline()
  217. def randomFillSync(buffer: BigInt64Array): BigInt64Array
    Annotations
    @inline()
  218. def randomInt(min: Double, max: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
    Annotations
    @inline()
  219. def randomInt(min: Double, max: Double): Double
    Annotations
    @inline()
  220. def randomInt(max: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
    Annotations
    @inline()
  221. def randomInt(max: Double): Double
    Annotations
    @inline()
  222. def randomUUID(options: RandomUUIDOptions): java.lang.String
    Annotations
    @inline()
  223. def randomUUID(): java.lang.String
    Annotations
    @inline()
  224. def scrypt(password: BinaryLike, salt: BinaryLike, keylen: Double, options: ScryptOptions, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  225. def scrypt(password: BinaryLike, salt: BinaryLike, keylen: Double, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  226. def scryptSync(password: BinaryLike, salt: BinaryLike, keylen: Double, options: ScryptOptions): Buffer
    Annotations
    @inline()
  227. def scryptSync(password: BinaryLike, salt: BinaryLike, keylen: Double): Buffer
    Annotations
    @inline()
  228. def secureHeapUsed(): SecureHeapUsage
    Annotations
    @inline()
  229. def sign(algorithm: Unit, data: ArrayBufferView, key: SignPrivateKeyInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  230. def sign(algorithm: Unit, data: ArrayBufferView, key: SignPrivateKeyInput): Buffer
    Annotations
    @inline()
  231. def sign(algorithm: Unit, data: ArrayBufferView, key: SignKeyObjectInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  232. def sign(algorithm: Unit, data: ArrayBufferView, key: SignKeyObjectInput): Buffer
    Annotations
    @inline()
  233. def sign(algorithm: Unit, data: ArrayBufferView, key: KeyLike, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  234. def sign(algorithm: Unit, data: ArrayBufferView, key: KeyLike): Buffer
    Annotations
    @inline()
  235. def sign(algorithm: Null, data: ArrayBufferView, key: SignPrivateKeyInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  236. def sign(algorithm: Null, data: ArrayBufferView, key: SignPrivateKeyInput): Buffer
    Annotations
    @inline()
  237. def sign(algorithm: Null, data: ArrayBufferView, key: SignKeyObjectInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  238. def sign(algorithm: Null, data: ArrayBufferView, key: SignKeyObjectInput): Buffer
    Annotations
    @inline()
  239. def sign(algorithm: Null, data: ArrayBufferView, key: KeyLike, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  240. def sign(algorithm: Null, data: ArrayBufferView, key: KeyLike): Buffer
    Annotations
    @inline()
  241. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignPrivateKeyInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  242. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignPrivateKeyInput): Buffer
    Annotations
    @inline()
  243. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignKeyObjectInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  244. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignKeyObjectInput): Buffer
    Annotations
    @inline()
  245. def sign(algorithm: java.lang.String, data: ArrayBufferView, key: KeyLike, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
    Annotations
    @inline()
  246. 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()
  247. def timingSafeEqual(a: ArrayBufferView, b: ArrayBufferView): Boolean
    Annotations
    @inline()
  248. def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  249. def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  250. def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  251. def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  252. def verify(algorithm: Unit, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  253. def verify(algorithm: Unit, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  254. def verify(algorithm: Null, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  255. def verify(algorithm: Null, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  256. def verify(algorithm: Null, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  257. def verify(algorithm: Null, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  258. def verify(algorithm: Null, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  259. def verify(algorithm: Null, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  260. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  261. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  262. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  263. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView): Boolean
    Annotations
    @inline()
  264. def verify(algorithm: java.lang.String, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
    Annotations
    @inline()
  265. 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()
  266. object AsymmetricKeyDetails
  267. object BasePrivateKeyEncodingOptions
  268. object BinaryToTextEncoding
  269. object Certificate
  270. object CharacterEncoding
  271. object CheckPrimeOptions
  272. object CipherCCMOptions
  273. object CipherCCMTypes
  274. object CipherGCMOptions
  275. object CipherGCMTypes
  276. object CipherInfo
  277. object CipherInfoOptions
  278. object CipherMode
  279. object DSAEncoding
  280. object DSAKeyPairKeyObjectOptions
  281. object DSAKeyPairOptions
  282. object ECDH
  283. object ECDHKeyFormat
  284. object ECKeyPairKeyObjectOptions
  285. object ECKeyPairOptions
  286. object ED25519KeyPairOptions
  287. object ED448KeyPairOptions
  288. object Encoding
  289. object GeneratePrimeOptions
  290. object GeneratePrimeOptionsArrayBuffer
  291. object GeneratePrimeOptionsBigInt
  292. object HashOptions
  293. object JsonWebKey
  294. object JsonWebKeyInput
  295. object JwkKeyExportOptions
  296. object KeyExportOptions
  297. object KeyFormat
  298. object KeyObjectType
  299. object KeyPairKeyObjectResult
  300. object KeyPairSyncResult
  301. object KeyType
  302. object LegacyCharacterEncoding
  303. object PrivateKeyInput
  304. object PublicKeyInput
  305. object RSAKeyPairKeyObjectOptions
  306. object RSAKeyPairOptions
  307. object RandomUUIDOptions
  308. object RsaPrivateKey
  309. object RsaPublicKey
  310. object ScryptOptions
  311. object SecureHeapUsage
  312. object SignKeyObjectInput
  313. object SignPrivateKeyInput
  314. object SigningOptions
  315. object VerifyKeyObjectInput
  316. object VerifyPublicKeyInput
  317. object X25519KeyPairOptions
  318. object X448KeyPairOptions
  319. object X509CheckOptions
  320. object ^ extends Object with StObject
    Annotations
    @JSImport("crypto", JSImport.Namespace) @native()
  321. object constants

Deprecated Value Members

  1. def DEFAULT_ENCODING: BufferEncoding

    Annotations
    @inline()
    Deprecated

    since v10.0.0

  2. def createCipher(algorithm: java.lang.String, password: BinaryLike): 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): 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 fips: Boolean

    Annotations
    @inline()
    Deprecated

    since v10.0.0

Inherited from AnyRef

Inherited from Any

Ungrouped