packet_log
packet_log("BD:\n");
packet_log("response data: ");
packet_log("payload:\n");
packet_log("IV_OV_OFST:%lu EXP_IV_SIZE:%u\n",
packet_log(" Auth Key Type:%s Length:%u Bytes\n",
packet_log(" Auth Key Type:%s Length:%u Bytes\n",
packet_log(" Auth State Type:%s Length:%u Bytes\n",
packet_log(" Cipher Key Type:%s Length:%u Bytes\n",
packet_log(" IV Length:%u Bytes\n", iv_len);
packet_log(" BDESC[0] 0x%08x\n", be32_to_cpup((__be32 *)ptr));
packet_log(" OffsetMAC:%u LengthMAC:%u\n",
packet_log(" BDESC[1] 0x%08x\n", be32_to_cpup((__be32 *)ptr));
packet_log(" OffsetCrypto:%u LengthCrypto:%u\n",
packet_log(" BDESC[2] 0x%08x\n", be32_to_cpup((__be32 *)ptr));
packet_log(" OffsetICV:%u OffsetIV:%u\n",
packet_log(" BD[0] 0x%08x\n", be32_to_cpup((__be32 *)ptr));
packet_log(" Size:%ubytes PrevLength:%u\n",
packet_log(" Packet parsed incorrectly. ");
packet_log("buf:%p buf_len:%u buf+buf_len:%p ptr:%p\n",
packet_log("\n");
packet_log("\n");
packet_log("SPU Message header %p len: %u\n", buf, buf_len);
packet_log(" MH 0x%08x\n", be32_to_cpup((__be32 *)ptr));
packet_log(" SCTX present\n");
packet_log(" BDESC present\n");
packet_log(" MFM present\n");
packet_log(" BD present\n");
packet_log(" HASH present\n");
packet_log(" SUPDT present\n");
packet_log(" Opcode 0x%02x\n", spuh->mh.op_code);
packet_log(" SCTX[0] 0x%08x\n", pflags);
packet_log(" Size %u words\n", sctx_size);
packet_log(" SCTX[1] 0x%08x\n", cflags);
packet_log(" Inbound:%lu (1:decrypt/vrfy 0:encrypt/auth)\n",
packet_log(" Order:%lu (1:AuthFirst 0:EncFirst)\n",
packet_log(" ICV_IS_512:%lx\n",
packet_log(" Crypto Alg:%u Mode:%u Type:%u\n",
packet_log(" Hash Alg:%x Mode:%x Type:%x\n",
packet_log(" UPDT_Offset:%u\n", cflags & UPDT_OFST);
packet_log(" SCTX[2] 0x%08x\n", ecf);
packet_log(" WriteICV:%lu CheckICV:%lu ICV_SIZE:%u ",
packet_log("BD_SUPPRESS:%lu\n",
packet_log(" SCTX_IV:%lu ExplicitIV:%lu GenIV:%lu ",
packet_log(" FMD CTRL0 %#16llx\n", ctrl0);
packet_log(" encrypt\n");
packet_log(" decrypt\n");
packet_log(" Cipher type: %s\n", ciph_name);
packet_log(" Cipher mode: %s\n", ciph_mode_name);
packet_log(" CFB %#x\n", cfb);
packet_log(" protocol %#x\n", proto);
packet_log(" hash first\n");
packet_log(" cipher first\n");
packet_log(" check tag\n");
packet_log(" Hash type: %s\n", hash_name);
packet_log(" Hash mode: %s\n", hash_mode_name);
packet_log(" Cipher pad: %#2llx\n",
packet_log(" FMD CTRL1 %#16llx\n", ctrl1);
packet_log(" Tag after payload\n");
packet_log(" Msg includes ");
packet_log("FD ");
packet_log("AAD1 ");
packet_log("NAAD ");
packet_log("AAD2 ");
packet_log("ESN ");
packet_log("\n");
packet_log(" Hash key len %u\n", hash_key_len);
packet_log(" Cipher key len %u\n", ciph_key_len);
packet_log(" Generate IV\n");
packet_log(" IV included in hash\n");
packet_log(" Return IV in output before payload\n");
packet_log(" Length of returned IV %u bytes\n",
packet_log(" IV offset %u\n", iv_offset);
packet_log(" Input IV len %u bytes\n", iv_len);
packet_log(" Hash tag length %u bytes\n", hash_tag_len);
packet_log(" Return ");
packet_log("FMD ");
packet_log("OMD ");
packet_log("OMD IV ");
packet_log("FD ");
packet_log("AAD1 ");
packet_log("NAAD ");
packet_log("AAD2 ");
packet_log("Payload");
packet_log("\n");
packet_log(" FMD CTRL2 %#16llx\n", ctrl2);
packet_log(" AAD1 offset %llu length %llu bytes\n",
packet_log(" AAD2 offset %llu\n",
packet_log(" Payload offset %llu\n",
packet_log(" FMD CTRL3 %#16llx\n", ctrl3);
packet_log(" Payload length %llu bytes\n", ctrl3 & SPU2_PL_LEN);
packet_log(" TLS length %llu bytes\n",
packet_log(" OMD:\n");
packet_log(" Hash Key Length %u bytes\n", hash_key_len);
packet_log(" Cipher Key Length %u bytes\n", ciph_key_len);
packet_log(" Hash IV Length %u bytes\n", hash_iv_len);
packet_log(" Cipher IV Length %u bytes\n", ciph_iv_len);
packet_log("\n");
packet_log("SPU2 message header %p len: %u\n", buf, buf_len);
packet_log
packet_log("\n");