public CKR C_EX_InitToken(NativeULong slotId, byte[] pin, ref CK_RUTOKEN_INIT_PARAM initInfo)
        {
            if (_disposed)
            {
                throw new ObjectDisposedException(GetType().FullName);
            }

            NativeULong pinLength = 0;

            if (pin != null)
            {
                pinLength = (NativeULong)(pin.Length);
            }

            NativeULong rv = _rutokenDelegates.C_EX_InitToken(slotId, pin, pinLength, ref initInfo);

            return((CKR)rv);
        }
Пример #2
0
 internal static extern NativeULong C_EX_InitToken(NativeULong slotId, byte[] pin, NativeULong pinLen, ref CK_RUTOKEN_INIT_PARAM initInfo);