public static byte[] calculateIdentityKey(final byte[] n) {
        if (n == null)
            return null;
        final byte[] salt = calculateSalt(NKIK);
        ByteBuffer buffer = ByteBuffer.allocate(ID128.length + 1);
        buffer.put(ID128);
        buffer.put((byte) 0x01);
        final byte[] p = buffer.array();
        return calculateK1(n, salt, p);
    }
Calculates the identity key

@param n network key
@return hash value
mesh/src/main/java/no/nordicsemi/android/mesh/utils/SecureUtils.java