Add a new interface:getCurKey to get current outkey, and roughly implemented the setKey, getCurKey interfaces.