private byte[] createDeviceNonce(final int aszmic,
                                     @NonNull final byte[] sequenceNumber,
                                     final int src,
                                     final int dst,
                                     @NonNull final byte[] ivIndex) {
        final ByteBuffer deviceNonceBuffer = ByteBuffer.allocate(13);
        deviceNonceBuffer.put((byte) NONCE_TYPE_DEVICE); //Nonce type
        deviceNonceBuffer.put((byte) ((aszmic << 7) | PAD_APPLICATION_DEVICE_NONCE)); //ASZMIC (SZMIC if a segmented access message) and PAD
        deviceNonceBuffer.put(sequenceNumber);
        deviceNonceBuffer.putShort((short) src);
        deviceNonceBuffer.putShort((short) dst);
        deviceNonceBuffer.put(ivIndex);
        return deviceNonceBuffer.array();
    }
Creates the device nonce

@param aszmic         aszmic (szmic if a segmented access message)
@param sequenceNumber sequence number of the message
@param src            source address
@param dst            destination address
@return Device  nonce
mesh/src/main/java/no/nordicsemi/android/mesh/transport/UpperTransportLayer.java