This key derivation function is meant to conform with EVP_BytesToKey. www.openssl.org/docs/crypto/EVP_BytesToKey.html

Constructors

Methods

Constructors

Methods

  • Initializes a newly created key derivation function.

    Parameters

    • Optionalcfg: {
          hasher?: HasherStatic;
          iterations: number;
          keySize: number;
      }

      (Optional) The configuration options to use for the derivation.

      • Optionalhasher?: HasherStatic
      • iterations: number
      • keySize: number

    Returns cryptojs.algo.EvpKDF

    var kdf = CryptoJS.algo.EvpKDF.create();
    var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
    var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });