update the interfaces of crypto codec