// Note : CkWtlsKeyMatOut does not need to be constructed here /// <summary> /// Creates parameters for the CKM_WTLS_SERVER_KEY_AND_MAC_DERIVE and the CKM_WTLS_CLIENT_KEY_AND_MAC_DERIVE mechanisms /// </summary> /// <param name='digestMechanism'>The digest mechanism to be used (CKM)</param> /// <param name='macSizeInBits'>The length (in bits) of the MACing key agreed upon during the protocol handshake phase</param> /// <param name='keySizeInBits'>The length (in bits) of the secret key agreed upon during the handshake phase</param> /// <param name='ivSizeInBits'>The length (in bits) of the IV agreed upon during the handshake phase or if no IV is required, the length should be set to 0</param> /// <param name='sequenceNumber'>The current sequence number used for records sent by the client and server respectively</param> /// <param name='isExport'>Flag indicating whether the keys have to be derived for an export version of the protocol</param> /// <param name='randomInfo'>Client's and server's random data information</param> /// <returns>Parameters for the CKM_WTLS_SERVER_KEY_AND_MAC_DERIVE and the CKM_WTLS_CLIENT_KEY_AND_MAC_DERIVE mechanisms</returns> public ICkWtlsKeyMatParams CreateCkWtlsKeyMatParams(ulong digestMechanism, ulong macSizeInBits, ulong keySizeInBits, ulong ivSizeInBits, ulong sequenceNumber, bool isExport, ICkWtlsRandomData randomInfo) { return _factory.CreateCkWtlsKeyMatParams(digestMechanism, macSizeInBits, keySizeInBits, ivSizeInBits, sequenceNumber, isExport, randomInfo); }