Using secure resources