moved protos here from chap.h; zero out secrets