/// <summary> /// Converts low level CK_MECHANISM_INFO structure to high level MechanismInfo class /// </summary> /// <param name="mechanism">Mechanism</param> /// <param name="ck_mechanism_info">Low level CK_MECHANISM_INFO structure</param> protected internal MechanismInfo(CKM mechanism, CK_MECHANISM_INFO ck_mechanism_info) { _mechanism = mechanism; _minKeySize = ck_mechanism_info.MinKeySize; _maxKeySize = ck_mechanism_info.MaxKeySize; _mechanismFlags = new MechanismFlags(ck_mechanism_info.Flags); }
/// <summary> /// Converts low level CK_MECHANISM_INFO structure to high level MechanismInfo class /// </summary> /// <param name="mechanism">Mechanism</param> /// <param name="ck_mechanism_info">Low level CK_MECHANISM_INFO structure</param> internal MechanismInfo(CKM mechanism, CK_MECHANISM_INFO ck_mechanism_info) { _mechanism = mechanism; _minKeySize = ck_mechanism_info.MinKeySize; _maxKeySize = ck_mechanism_info.MaxKeySize; _mechanismFlags = new MechanismFlags(ck_mechanism_info.Flags); }