SCrypt

class SCrypt(val cost: Int, val parallelization: Int, val blockSize: Int = 8) : KDF(source)

scrypt in accordance with RFC 7914. Directly implements the KDF interface.

Parameters:

  • CPU/memory cost parameter; must be a positive power of two greater than 1; controls how many independent transformations of the input must be held in memory

    • affects: scryptBlockMix

  • parallelization parameter; must be >=1; controls how many blocks scryptROMix is run on in parallel

    • affects: final key derivation

  • blockSize factor; must be >=1; fine-tunes sequential memory read size and performance. Defaults to 8, which is commonly used.

    • affects: scryptBlockMix and scryptROMix

Constructors

Link copied to clipboard
constructor(cost: Int, parallelization: Int, blockSize: Int = 8)

Properties

Link copied to clipboard
val blockSize: Int = 8
Link copied to clipboard
val cost: Int
Link copied to clipboard