public static int getTransMicLength(final int aszmic) {
        if (aszmic == 0) {
            return 4; //length;
        } else {
            return 8; //length
        }
    }
Gets the transport MIC length based on the aszmic value

@param aszmic application size message integrity check
mesh/src/main/java/no/nordicsemi/android/mesh/utils/SecureUtils.java