mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-08 04:34:29 +00:00
23 lines
471 B
Java
23 lines
471 B
Java
package org.whispersystems.textsecure.crypto.kdf;
|
|
|
|
import javax.crypto.spec.SecretKeySpec;
|
|
|
|
public class DerivedSecrets {
|
|
|
|
private final SecretKeySpec cipherKey;
|
|
private final SecretKeySpec macKey;
|
|
|
|
public DerivedSecrets(SecretKeySpec cipherKey, SecretKeySpec macKey) {
|
|
this.cipherKey = cipherKey;
|
|
this.macKey = macKey;
|
|
}
|
|
|
|
public SecretKeySpec getCipherKey() {
|
|
return cipherKey;
|
|
}
|
|
|
|
public SecretKeySpec getMacKey() {
|
|
return macKey;
|
|
}
|
|
}
|