crypto/shachain/tools: update to new rbuf API.