Compute the BAC keys