public void SetOperationState(byte[] state, ObjectHandle encryptionKey, ObjectHandle authenticationKey)
{
if (this._disposed)
throw new ObjectDisposedException(this.GetType().FullName);
if (state == null)
throw new ArgumentNullException("state");
if (encryptionKey == null)
throw new ArgumentNullException("encryptionKey");
if (authenticationKey == null)
throw new ArgumentNullException("authenticationKey");
CKR rv = _p11.C_SetOperationState(_sessionId, state, Convert.ToUInt64(state.Length), encryptionKey.ObjectId, authenticationKey.ObjectId);
if (rv != CKR.CKR_OK)
throw new Pkcs11Exception("C_SetOperationState", rv);
}