String labelAndNonce = getLabelAndNonce(convSession, dkInfo); //Label and nonce
long keyLength = getKeyLength(convSession, dkInfo); //Length of the key to generated
int offset = getOffset(convSession, dkInfo);
DerivationAlgorithm derivationAlgo = AlgoFactory.getInstance(dkInfo.
getAlgorithm()); //Derivation algorithm
return derivationAlgo.createKey(secret, labelAndNonce, offset, keyLength);
}
/**
* The label+nonce value used for the seed in calculating the derived key
*