{
// ECC-CMS-SharedInfo
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(new AlgorithmIdentifier(algorithm, new DERNull()));
v.add(new DERTaggedObject(true, 2, new DEROctetString(integerToBytes(keySize))));
kdf.init(new KDFParameters(z, new DERSequence(v).getDEREncoded()));
return kdf.generateBytes(out, outOff, len);
}