support 40bits and 56bits key on client side, bug on update keys