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

org.whispersystems.libaxolotl.kdf.DerivedRootSecrets Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package org.whispersystems.libaxolotl.kdf;

import org.whispersystems.libaxolotl.util.ByteUtil;

public class DerivedRootSecrets {

  public static final int SIZE = 64;

  private final byte[] rootKey;
  private final byte[] chainKey;

  public DerivedRootSecrets(byte[] okm) {
    byte[][] keys = ByteUtil.split(okm, 32, 32);
    this.rootKey  = keys[0];
    this.chainKey = keys[1];
  }

  public byte[] getRootKey() {
    return rootKey;
  }

  public byte[] getChainKey() {
    return chainKey;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy