Looks like this crypto function probably belongs in fc/crypto/ rather than in bts...