Lines Matching refs:opc
14 static int milenage_opc(const u8 *op, const u8 *k, u8 *opc) in milenage_opc() argument
18 if (aes_128_encrypt_block(k, op, opc) < 0) in milenage_opc()
21 opc[i] ^= op[i]; in milenage_opc()
29 u8 opc[16]; member
258 u8 opc[16]; member
698 u8 buf[16], buf2[16], buf3[16], buf4[16], buf5[16], opc[16]; in main() local
711 milenage_opc(t->op, t->k, opc); in main()
712 if (memcmp(opc, t->opc, 16) != 0) { in main()
717 if (milenage_f1(opc, t->k, t->rand, t->sqn, t->amf, buf, buf2) in main()
727 if (milenage_f2345(opc, t->k, t->rand, buf, buf2, buf3, buf4, in main()
754 res = milenage_auts(t->opc, t->k, t->rand, auts, buf); in main()
764 res = milenage_auts(t->opc, t->k, _rand, auts, buf); in main()
775 milenage_generate(t->opc, t->amf, t->k, sqn, _rand, buf, buf2, buf3, in main()
790 gsm_milenage(g->opc, g->ki, g->rand, sres, kc); in main()