libzc: add code that computes key1's