All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.whispersystems.libsignal.kdf.HKDF Maven / Gradle / Ivy

/**
 * Copyright (C) 2013-2016 Open Whisper Systems
 *
 * Licensed according to the LICENSE file in this repository.
 */

package org.whispersystems.libsignal.kdf;

import org.signal.client.internal.Native;

public abstract class HKDF {
  public static byte[] deriveSecrets(byte[] inputKeyMaterial, byte[] info, int outputLength) {
    return Native.HKDF_DeriveSecrets(outputLength, inputKeyMaterial, info, null);
  }

  public static byte[] deriveSecrets(byte[] inputKeyMaterial, byte[] salt, byte[] info, int outputLength) {
    return Native.HKDF_DeriveSecrets(outputLength, inputKeyMaterial, info, salt);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy