コード例 #1
0
 // Note : CkSsl3KeyMatOut does not need to be constructed here
 /// <summary>
 /// Creates parameters for the CKM_SSL3_KEY_AND_MAC_DERIVE mechanism
 /// </summary>
 /// <param name='macSizeInBits'>The length (in bits) of the MACing keys agreed upon during the protocol handshake phase</param>
 /// <param name='keySizeInBits'>The length (in bits) of the secret keys agreed upon during the protocol handshake phase</param>
 /// <param name='ivSizeInBits'>The length (in bits) of the IV agreed upon during the protocol handshake phase or if no IV is required, the length should be set to 0</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_SSL3_KEY_AND_MAC_DERIVE mechanism</returns>
 public ICkSsl3KeyMatParams CreateCkSsl3KeyMatParams(ulong macSizeInBits, ulong keySizeInBits, ulong ivSizeInBits, bool isExport, ICkSsl3RandomData randomInfo)
 {
     return _factory.CreateCkSsl3KeyMatParams(macSizeInBits, keySizeInBits, ivSizeInBits, isExport, randomInfo);
 }